python 3, subclassing TextIOWrapper.

Benjamin Peterson benjamin at
Mon Mar 23 00:56:09 CET 2009

Gabriel Genellina <gagsl-py2 <at>> schrieb:
> How do you know? AFAIK, the return value of open() is completely  
> undocumented:
> And if you open the  file in text mode, the return value isn't a  
> BufferedIOBase.

Oh, I see. I should change that. :) That open() will return a object
implementing  RawIOBase, BufferedIOBase, or TextIOBase depending on the mode is
part of the API.

More information about the Python-list mailing list