Message80192
Right now, the multiprocessing code is littered with statements like:
assert self._popen is None, 'cannot start a process twice'
assert self._parent_pid == os.getpid(), \
'can only start a process object created by current
process'
assert not _current_process._daemonic, \
'daemonic processes are not allowed to have children'
These will obviously be stripped out if running in optimized mode -
however its not cool to rely on these anyway, the code should be
refactored to proper checks, e.g.:
if not hasattr(lock, 'acquire'):
raise AttributeError("'%r' has no method 'acquire'" % lock) |
|
Date |
User |
Action |
Args |
2009-01-19 16:32:42 | jnoller | set | recipients:
+ jnoller |
2009-01-19 16:32:42 | jnoller | set | messageid: <1232382762.58.0.610641171059.issue5001@psf.upfronthosting.co.za> |
2009-01-19 16:32:41 | jnoller | link | issue5001 messages |
2009-01-19 16:32:41 | jnoller | create | |
|