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. -- http://mail.python.org/mailman/listinfo/python-list