Download Python/val/3.13/pattern-matching/modern_12.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.13/pattern-matching/modern_12.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/val/3.13/pattern-matching/modern_12.py
-
curl -L -o modern_12.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.13/pattern-matching/modern_12.py
225 Bytes
| match (1, 2) # Identifier | |
| match (1, 2): # Keyword | |
| case _: ... | |
| match [1:] # Identifier | |
| match [1, 2]: # Keyword | |
| case _: ... | |
| match * foo # Identifier | |
| match - foo # Identifier | |
| match -foo: # Keyword | |
| case _: ... | |