python 3, subclassing TextIOWrapper.

Benjamin Peterson benjamin at python.org
Sun Mar 22 19:56:09 EDT 2009


Gabriel Genellina <gagsl-py2 <at> yahoo.com.ar> schrieb:
> 
> How do you know? AFAIK, the return value of open() is completely  
> undocumented:
> http://docs.python.org/3.0/library/functions.html#open
> 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