sys.stderr.write returns string length in Python 3

Fredrik Lundh fredrik at
Wed Jul 23 09:07:27 CEST 2008

Alan G Isaac wrote:

> Can you give me an example of using the returned value?

it's for consistency with stream objects that support raw I/O (as 
described in the PEP).  when using buffered I/O, you can ignore it.


More information about the Python-list mailing list