Message 72228 - Python tracker

Message72228

Author ncoghlan
Recipients jnoller, ncoghlan, pitrou
Date 2008-09-01.11:57:50
SpamBayes Score 6.2677077e-07
Marked as misclassified No
Message-id <1220270273.74.0.451591496893.issue3589@psf.upfronthosting.co.za>
In-reply-to
Content
Patch attached that removes the misleading "convenience" functions,
replacing them with explicit imports of the appropriate names.

The patch also adds docstrings to some of the original class definitions
that were missing them.

No changes were needed to the multiprocessing tests - they all still
passed with this change, and the docs are still accurate as well (I
would actually say this change makes the docs MORE accurate).

Python 2.6b3+ (trunk:66083, Aug 31 2008, 19:00:32)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing as mp
>>> isinstance(mp.Lock(), mp.Lock)
True
>>> mp.Lock.__name__
'Lock'
>>> mp.Lock.__module__
'multiprocessing.synchronize'
History
Date User Action Args
2008-09-01 11:57:53ncoghlansetrecipients: + ncoghlan, pitrou, jnoller
2008-09-01 11:57:53ncoghlansetmessageid: <1220270273.74.0.451591496893.issue3589@psf.upfronthosting.co.za>
2008-09-01 11:57:53ncoghlanlinkissue3589 messages
2008-09-01 11:57:52ncoghlancreate