Message375544
| Author |
iritkatriel |
| Recipients |
drougge, iritkatriel |
| Date |
2020年08月17日.13:51:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1597672274.38.0.706419067144.issue41567@roundup.psfhosted.org> |
| In-reply-to |
| Content |
I see the same in Python 3.10 on windows 10.
If I change the relative imports to absolute imports in a couple of functions in multiprocessing.context as below, the attached (pool_error_on_3.9.py) script not longer raises the exception.
def SimpleQueue(self):
'''Returns a queue object'''
from multiprocessing.queues import SimpleQueue
return SimpleQueue(ctx=self.get_context())
def Pool(self, processes=None, initializer=None, initargs=(),
maxtasksperchild=None):
'''Returns a process pool object'''
from multiprocessing.pool import Pool
return Pool(processes, initializer, initargs, maxtasksperchild,
context=self.get_context()) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年08月17日 13:51:14 | iritkatriel | set | recipients:
+ iritkatriel, drougge |
| 2020年08月17日 13:51:14 | iritkatriel | set | messageid: <1597672274.38.0.706419067144.issue41567@roundup.psfhosted.org> |
| 2020年08月17日 13:51:14 | iritkatriel | link | issue41567 messages |
| 2020年08月17日 13:51:14 | iritkatriel | create |
|