Kushal Das added the comment:
sys.stdout.write returns the length of the string it printed.
try these:
x = sys.stdout.write("abc")
print x
or from console
python -c 'import sys ; sys.stdout.write("abc")'
----------
nosy: +kushaldas
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16459>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com