Datasets:
Download Python/val/3.15/pattern-matching/modern_20.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 156 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.15/pattern-matching/modern_20.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/val/3.15/pattern-matching/modern_20.py
-
curl -L -o modern_20.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.15/pattern-matching/modern_20.py
156 Bytes
| # parse_options: {"target-version": "3.15"} | |
| match foo: | |
| case +1: ... | |
| # this is also now valid inside more complicated patterns | |
| case {+1: 2}: ... | |