[Python-ideas] seperating streams from their underlying buffer

Antoine Pitrou solipsis at pitrou.net
Wed Apr 15 11:43:09 CEST 2009


Benjamin Peterson <benjamin at ...> writes:
> 
> I think we should provide a disconnect() method for
> BufferedIOBase and TextIOBase that removes from the wrapper and returns raw
> stream or buffer respectively.

Good idea :)
disconnect() sounds network-y, how about detach()?
Also, it should probably do an implicit flush of the internal buffer.





More information about the Python-ideas mailing list