Message 176329 - Python tracker (original) (raw)
Any chance this patch could be applied to version 2.7? It's still an issue in 2.7.3, even though a suitable patch was supplied 3 years ago.
I understand that it's fixed in python3, but for us poor maintainers of ancient code, it would be convenient to be able to do things like
with StringIO() as test: test.write("hi!") return test.getvalue()