Ned Deily added the comment:
The misbehavior in Python 2.7 was due to a bug as documented in Issue9928, a
bug that unfortunately was not discovered until just after 2.7 was initially
released. The fix for Issue9928 was first included in 2.7.1 as you discovered.
So the documentation has alway
New submission from Fabian:
I had a weird bug recently where someone tried to use the with-statement on a
BZ2File. According to the documentation it was added in 2.7 and looking at
https://hg.python.org/cpython/rev/5d5d9074f4ca it looks like it was added
together with the support in gzip.
But