python 3, subclassing TextIOWrapper.

Benjamin Peterson benjamin at
Sun Mar 22 20:37:31 CET 2009

Gabriel Genellina <gagsl-py2 <at>> writes:
> There is another alternative that relies on undocumented behaviour: use  
> open to create a *binary* file and wrap the resulting BufferedReader  
> object in your own TextIOWrapper.

How is that undocumented behavior? TextIOWrapper can wrap any buffer which
follows the io.BufferedIOBase ABC. BufferedReader is a subclass of

More information about the Python-list mailing list