Message76794
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. |
|
Date |
User |
Action |
Args |
2008-12-02 22:08:59 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, loewis, barry, rhettinger, christian.heimes, jnoller |
2008-12-02 22:08:59 | amaury.forgeotdarc | set | messageid: <1228255739.83.0.644081364123.issue4449@psf.upfronthosting.co.za> |
2008-12-02 22:08:58 | amaury.forgeotdarc | link | issue4449 messages |
2008-12-02 22:08:57 | amaury.forgeotdarc | create | |
|