[issue43283] IDLE: Explain print slowness and speedup method

Terry J. Reedy report at bugs.python.org
Sun Feb 21 01:35:34 EST 2021


New submission from Terry J. Reedy <tjreedy at udel.edu>:

https://stackoverflow.com/questions/66286367/why-is-my-function-faster-than-pythons-print-function-in-idle had some tests of printing speed that showed that print in IDLE can be much slower than in REPL.  I did further tests that showed than combining chunks and lines into a single string can erase most of the difference.

For easier review, the first patch just rearranges current paragraphs to bring together those dealing with 2 processes and sys.stdxxx.  Some are also re-wrapped. The second patch will contain just the new paragraph.

----------
assignee: docs at python -> terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43283>
_______________________________________


More information about the Python-bugs-list mailing list