[Python-ideas] seperating streams from there underlying buffer

Benjamin Peterson benjamin at python.org
Wed Apr 15 00:08:00 CEST 2009

Currently, If you want write/read binary from a stream you are using
TextIOWrapper with you must keep the TextIOWrapper alive otherwise, it will
close the underlying buffer. I think we should provide a disconnect() method for
BufferedIOBase and TextIOBase that removes from the wrapper and returns raw
stream or buffer respectively.

More information about the Python-ideas mailing list