[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread Matt Wartell
Matt Wartell added the comment: Sorry for the dup, and thanks for the patch. My patch for Module/bz2module.c was almost done - I learned a lot in the process, but foremost to check better for dups, first ;) -- ___ Python tracker

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread R. David Murray
R. David Murray added the comment: Indeed, and it was considered a feature request and thus is not appropriate for backport. If you wish to see that decision changed I think you will need to appeal to python-dev. -- nosy: +r.david.murray resolution: -> out of date stage: needs patch

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread Tres Seaver
Tres Seaver added the comment: BZ2File objects already support the context manager protocol on the trunk, as of Antoine Pitrou's fix for http://bugs.python.org/issue3860 -- nosy: +tseaver ___ Python tracker __

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> needs patch versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list maili

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-03 Thread Matt Wartell
Matt Wartell added the comment: cross referenced with documentation issue http://bugs.python.org/issue8602 "documentation of bz2 module mildly erroneous" -- ___ Python tracker _

[issue8601] bz2.BZ2File should support "with" protocol per PEP 343

2010-05-02 Thread Matt Wartell
New submission from Matt Wartell : As the bz2.BZ2File object claims to be a file-like object it should conform to PEP 343 "The 'with' statement" by implementation of the __enter__ and __exit__ methods. boring, substantiating detail follows: $ uname -a Linux tallguy 2.6.32-21-generic #32-Ubunt