[issue5863] bz2.BZ2File should accept other file-like objects. (issue4274045)
Michiel de Hoon
report at bugs.python.org
Mon Mar 14 14:22:16 CET 2011
Michiel de Hoon <mdehoon at users.sourceforge.net> added the comment:
Would it be possible to add an open() function to the bz2 module? Currently gzip has such a function, but bz2 does not:
>>> import gzip
>>> gzip.open
<function open at 0x781f0>
>>> import bz2
>>> bz2.open
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'open'
>>>
----------
nosy: +mdehoon
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5863>
_______________________________________
More information about the Python-bugs-list
mailing list