[issue16459] sys.stdout.write printing length of string

2012-11-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: -None stage: -> committed/rejected type: -> behavior ___ Python tracker ___ ___ Python-bug

[issue16459] sys.stdout.write printing length of string

2012-11-11 Thread Firat Ozgul
Firat Ozgul added the comment: Thank you for the explanation, kushaldas. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue16459] sys.stdout.write printing length of string

2012-11-11 Thread Kushal Das
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

[issue16459] sys.stdout.write printing length of string

2012-11-11 Thread Firat Ozgul
Changes by Firat Ozgul : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16459] sys.stdout.write printing length of string

2012-11-11 Thread Firat Ozgul
Firat Ozgul added the comment: Although I do not know the reason for change, it seems that this is expected behavior as of Python 3.0 in interactive shell. Closing the record as 'invalid'. -- resolution: -> invalid ___ Python tracker

[issue16459] sys.stdout.write printing length of string

2012-11-11 Thread Firat Ozgul
New submission from Firat Ozgul: On Python 3.3 under Windows and GNU/Linux, sys.stdout.write prints the length of string along with the string itself: >>> sys.stdout.write("a_string") a_string8 Note the '8' at the end of 'a_string'. Is it expected behavior? -- components: None messa