Message367274
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? |
|
| Date |
User |
Action |
Args |
| 2020-04-25 11:35:44 | remi.lapeyre | set | recipients:
+ remi.lapeyre, docs@python, Santiago Blanco |
| 2020-04-25 11:35:44 | remi.lapeyre | set | messageid: <[email protected]> |
| 2020-04-25 11:35:44 | remi.lapeyre | link | issue40387 messages |
| 2020-04-25 11:35:44 | remi.lapeyre | create | |
|