Download Python/train/3.13/exception-groups/modern_10.py from SwashBuckler001/idiombench: direct link, hf CLI and curl.
- Browser
- Download file 191 Bytes
-
https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/exception-groups/modern_10.py
- Command line
-
hf download hf://datasets/SwashBuckler001/idiombench/Python/train/3.13/exception-groups/modern_10.py
-
curl -L -o modern_10.py https://huggingface.co/datasets/SwashBuckler001/idiombench/resolve/main/Python/train/3.13/exception-groups/modern_10.py
191 Bytes
| try: | |
| raise ExceptionGroup("problem", [BlockingIOError()]) | |
| except* OSError as e: # Would catch the error | |
| print(repr(e)) | |
| except* BlockingIOError: # Would never run | |
| print('never') | |