Author jnoller
Recipients jnoller
Date 2009-01-19.16:32:40
SpamBayes Score 0.00530761
Marked as misclassified No
Message-id <1232382762.58.0.610641171059.issue5001@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-01-19 16:32:42jnollersetrecipients: + jnoller
2009-01-19 16:32:42jnollersetmessageid: <1232382762.58.0.610641171059.issue5001@psf.upfronthosting.co.za>
2009-01-19 16:32:41jnollerlinkissue5001 messages
2009-01-19 16:32:41jnollercreate