P3 weird sys.stdout.write()

Jerzy Jalocha N jjalocha at gmail.com
Mon Aug 24 15:44:47 CEST 2009


>>> import sys
>>> n = sys.stdout.write('something')
something>>> n
9
>>>

Yes, that works as expected, now, similar to 2.6.
Thank you both, Diez and André!

-Jerzy



More information about the Python-list mailing list