This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zach.ware
Recipients dtorp, zach.ware
Date 2018-01-24.20:59:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1516827544.69.0.467229070634.issue32656@psf.upfronthosting.co.za>
In-reply-to
Content
This is not a bug, it's a side effect of using the REPL for this test and not assigning the return value of `sys.stdout.write` to anything.  Try the following:

>>> import sys
>>> character_count = sys.stdout.write('python\n') # note trailing newline
python
>>> character_count
6
>>> print('python')
python
>>> 

Or try saving your original test to a file and running it.
History
Date User Action Args
2018-01-24 20:59:04zach.waresetrecipients: + zach.ware, dtorp
2018-01-24 20:59:04zach.waresetmessageid: <1516827544.69.0.467229070634.issue32656@psf.upfronthosting.co.za>
2018-01-24 20:59:04zach.warelinkissue32656 messages
2018-01-24 20:59:04zach.warecreate