New submission from Hagen Fürstenau <[EMAIL PROTECTED]>:
When you've become used to writing
with open("xzy", "w") as f:
it's strange when it doesn't work for gzip.open or bz2.BZ2File.
Or is there a reason for them not being context managers?
----------
components: Library (Lib)
messages: 73194
nosy: hagen
severity: normal
status: open
title: GzipFile and BZ2File should support context manager protocol
type: feature request
versions: Python 2.6, Python 3.0
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3860>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com