Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
Hello,
the following snippet raises an exception in Python 3.13.2 while it's fine with Python 3.12.
importioimportgzipdeffoo():buffer=gzip.GzipFile(fileobj=io.BytesIO(),mode="w")foo()
Running this with python3.12 is silent, with Python 3.13.2 instead:
Exception ignored in: <gzip on 0x7fa4fd99c550>Traceback (most recent call last): File "/usr/lib/python3.13/gzip.py", line 359, in close fileobj.write(self.compress.flush())CPython versions tested on:
3.13
Operating systems tested on:
Linux