Message310632
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. |
|
Date |
User |
Action |
Args |
2018-01-24 20:59:04 | zach.ware | set | recipients:
+ zach.ware, dtorp |
2018-01-24 20:59:04 | zach.ware | set | messageid: <1516827544.69.0.467229070634.issue32656@psf.upfronthosting.co.za> |
2018-01-24 20:59:04 | zach.ware | link | issue32656 messages |
2018-01-24 20:59:04 | zach.ware | create | |
|