Download Python/val/3.13/pattern-matching/modern_10.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.13/pattern-matching/modern_10.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/val/3.13/pattern-matching/modern_10.py
-
curl -L -o modern_10.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.13/pattern-matching/modern_10.py
358 Bytes
| match foo: | |
| case _: ... | |
| match 1: | |
| case _: ... | |
| match 1.0: | |
| case _: ... | |
| match 1j: | |
| case _: ... | |
| match "foo": | |
| case _: ... | |
| match f"foo {x}": | |
| case _: ... | |
| match {1, 2}: | |
| case _: ... | |
| match ~foo: | |
| case _: ... | |
| match ...: | |
| case _: ... | |
| match not foo: | |
| case _: ... | |
| match await foo(): | |
| case _: ... | |
| match lambda foo: foo: | |
| case _: ... | |