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.

classification
Title: IDLE: Explain print slowness and speedup method
Type: enhancement Stage: resolved
Components: Documentation, IDLE Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: docs@python, miss-islington, terry.reedy
Priority: normal Keywords: patch

Created on 2021-02-21 06:16 by terry.reedy, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24604 merged terry.reedy, 2021-02-21 06:42
PR 24607 merged miss-islington, 2021-02-21 07:44
PR 24608 merged miss-islington, 2021-02-21 07:44
PR 24615 merged terry.reedy, 2021-02-21 22:09
PR 24631 merged miss-islington, 2021-02-24 00:40
PR 24632 merged miss-islington, 2021-02-24 00:40
Messages (7)
msg387440 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-02-21 06:35
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.
msg387442 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-02-21 07:44
New changeset 4cf7bb8e22bf37e6d65bf4cb5618d09c4a8ad612 by Terry Jan Reedy in branch 'master':
bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
https://github.com/python/cpython/commit/4cf7bb8e22bf37e6d65bf4cb5618d09c4a8ad612
msg387443 - (view) Author: miss-islington (miss-islington) Date: 2021-02-21 08:04
New changeset 6ddb25586524022923d076ddb3b5867214c6ce42 by Miss Islington (bot) in branch '3.8':
bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
https://github.com/python/cpython/commit/6ddb25586524022923d076ddb3b5867214c6ce42
msg387444 - (view) Author: miss-islington (miss-islington) Date: 2021-02-21 08:07
New changeset 693aeacf8851d1e9995073e27e50644a505dc49c by Miss Islington (bot) in branch '3.9':
bpo-43283: Rearrange some IDLE doc paragraphs. (GH-24604)
https://github.com/python/cpython/commit/693aeacf8851d1e9995073e27e50644a505dc49c
msg387595 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-02-24 00:39
New changeset 2827e8a177c2a6584fada594bca6829c53a2872f by Terry Jan Reedy in branch 'master':
bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)
https://github.com/python/cpython/commit/2827e8a177c2a6584fada594bca6829c53a2872f
msg387597 - (view) Author: miss-islington (miss-islington) Date: 2021-02-24 01:04
New changeset e202f1e4dbe02fbcae9f6afed863b7221b39c984 by Miss Islington (bot) in branch '3.9':
bpo-43283: Add IDLE doc paragraph about print speed (GH-24615)
https://github.com/python/cpython/commit/e202f1e4dbe02fbcae9f6afed863b7221b39c984
msg387598 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-02-24 01:47
New changeset bdf0fece5bbc2fc9fffbf0f314c7022e24e747df by Miss Islington (bot) in branch '3.8':
bpo-43283: Add IDLE doc paragraph about print speed (GH-24615) (GH-24632)
https://github.com/python/cpython/commit/bdf0fece5bbc2fc9fffbf0f314c7022e24e747df
History
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87449
2021-02-24 01:47:41terry.reedysetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-02-24 01:47:12terry.reedysetmessages: + msg387598
2021-02-24 01:04:01miss-islingtonsetmessages: + msg387597
2021-02-24 00:40:19miss-islingtonsetpull_requests: + pull_request23416
2021-02-24 00:40:12miss-islingtonsetpull_requests: + pull_request23415
2021-02-24 00:39:59terry.reedysetmessages: + msg387595
2021-02-21 22:09:05terry.reedysetpull_requests: + pull_request23396
2021-02-21 08:07:39miss-islingtonsetmessages: + msg387444
2021-02-21 08:04:17miss-islingtonsetmessages: + msg387443
2021-02-21 07:44:36miss-islingtonsetpull_requests: + pull_request23387
2021-02-21 07:44:25miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request23386
2021-02-21 07:44:18terry.reedysetmessages: + msg387442
2021-02-21 06:42:26terry.reedysetkeywords: + patch
pull_requests: + pull_request23382
2021-02-21 06:35:34terry.reedysetassignee: docs@python -> terry.reedy
messages: + msg387440
2021-02-21 06:16:39terry.reedycreate