Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

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.

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4449>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to