Message76794
| 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. |
|