Datasets:
Download Python/val/3.13/variadic-generics/modern_09.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 266 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.13/variadic-generics/modern_09.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/val/3.13/variadic-generics/modern_09.py
-
curl -L -o modern_09.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.13/variadic-generics/modern_09.py
266 Bytes
| data[0][0] | |
| data[0, 1] | |
| data[0:,] | |
| data[0:, 1] | |
| data[0:1, 2] | |
| data[0:1:2, 3, a:b + 1] | |
| data[a := b] | |
| data[:, :11] | |
| data[1, 2, 3] | |
| data[~flag] | |
| data[(a := 0):] | |
| data[(a := 0):y] | |
| # This is a single element tuple with a starred expression | |
| data[*x] | |
| data[*x and y] | |
| data[*(x := y)] | |