This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients amaury.forgeotdarc, arigo, benjamin.peterson, pitrou
Date 2010-09-23.17:44:14
SpamBayes Score 2.6701753e-07
Marked as misclassified No
Message-id <>
I haven't investigated but this is weird (especially the fact that it doesn't *always* happen). There might be a problem with SETUP_WITH or perhaps the method cache:

>>> import bz2
>>> f = bz2.BZ2File('foo.bz2', 'wb')
>>> with f: pass
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: __exit__
>>> f.__enter__().__exit__(None, None, None)
Date User Action Args
2010-09-23 17:44:20pitrousetrecipients: + pitrou, arigo, amaury.forgeotdarc, benjamin.peterson
2010-09-23 17:44:20pitrousetmessageid: <>
2010-09-23 17:44:15pitroulinkissue9928 messages
2010-09-23 17:44:14pitroucreate