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 remi.lapeyre
Recipients Santiago Blanco, docs@python, remi.lapeyre
Date 2020-04-25.11:35:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
In general examples in the documentation may lack some things like imports as they are implicit but in this case it also lack do_work(), source() and num_worker_threads.

You could use os.cpu_count() instead of your hard-coded value and the comment.

Can you open a pull request with your change?
History
Date User Action Args
2020-04-25 11:35:44remi.lapeyresetrecipients: + remi.lapeyre, docs@python, Santiago Blanco
2020-04-25 11:35:44remi.lapeyresetmessageid: <[email protected]>
2020-04-25 11:35:44remi.lapeyrelinkissue40387 messages
2020-04-25 11:35:44remi.lapeyrecreate