This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, barry, christian.heimes, jnoller, loewis
Date 2008-12-02.21:10:32
SpamBayes Score 0.0014303832
Marked as misclassified No
Message-id <1228252234.16.0.478280184221.issue4449@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch nonetheless. It makes the code match the the documentation:

http://docs.python.org/library/multiprocessing.html#multiprocessing.sharedctypes.Arra
y
"""
- If lock is True (the default) then a new lock object is created to synchronize 
access to the value.
- If lock is a Lock or RLock object then that will be used to synchronize access to 
the value.
- If lock is False then access to the returned object will not be automatically 
protected by a lock, so it will not necessarily be process-safe.
"""

I changed multiprocessing.sharedctypes.Array and multiprocessing. sharedctypes.Array
I had to change some tests: now "lock=None" is an error.
+ some markup fixes in the documentation.
History
Date User Action Args
2008-12-02 21:10:34amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, loewis, barry, christian.heimes, jnoller
2008-12-02 21:10:34amaury.forgeotdarcsetmessageid: <1228252234.16.0.478280184221.issue4449@psf.upfronthosting.co.za>
2008-12-02 21:10:33amaury.forgeotdarclinkissue4449 messages
2008-12-02 21:10:33amaury.forgeotdarccreate