Datasets:
Download Python/val/3.13/fstring-grammar/unchanged_03.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.13/fstring-grammar/unchanged_03.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/val/3.13/fstring-grammar/unchanged_03.py
-
curl -L -o unchanged_03.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/val/3.13/fstring-grammar/unchanged_03.py
415 Bytes
| # parse_options: {"target-version": "3.11"} | |
| f"outer {'# not a comment'}" | |
| f'outer {x:{"# not a comment"} }' | |
| f"""{f'''{f'{"# not a comment"}'}'''}""" | |
| f"""{f'''# before expression {f'# aro{f"#{1+1}#"}und #'}'''} # after expression""" | |
| f"""{ | |
| 1 | |
| }""" | |
| f"escape outside of \t {expr}\n" | |
| f"test\"abcd" | |
| f"{1:\x64}" # escapes are valid in the format spec | |
| f"{1:\"d\"}" # this also means that escaped outer quotes are valid | |