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, rhettinger
Date 2008-12-02.22:08:57
SpamBayes Score 0.0004934199
Marked as misclassified No
Message-id <1228255739.83.0.644081364123.issue4449@psf.upfronthosting.co.za>
In-reply-to
Content
The one I know is pypy: bool(x) always return one of the two prebuilt singletons 
(doubletons?).

The docs explicitly mention "If lock is True...", "If lock is False...":
http://docs.python.org/library/multiprocessing.html#multiprocessing.sharedctypes.Value

I fear that testing the boolean value of the lock variable may have undesired effect; if 
even the main multiprocessing.RLock object has a _is_zero() method (that seems to return 
whether the lock is held or not), it is very possible that other implementations choose 
__nonzero__ for this.
History
Date User Action Args
2008-12-02 22:08:59amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, loewis, barry, rhettinger, christian.heimes, jnoller
2008-12-02 22:08:59amaury.forgeotdarcsetmessageid: <1228255739.83.0.644081364123.issue4449@psf.upfronthosting.co.za>
2008-12-02 22:08:58amaury.forgeotdarclinkissue4449 messages
2008-12-02 22:08:57amaury.forgeotdarccreate