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 toymachine
Recipients toymachine
Date 2008-07-11.07:52:33
SpamBayes Score 0.10877205
Marked as misclassified No
Message-id <1215762755.01.0.797304698673.issue3339@psf.upfronthosting.co.za>
In-reply-to
Content
Class LockType always seems to be returning None if waitflag is not
specified.

If you look up the documentation for the non dummy lock in lib ref
15.3.1 , none of the possible
results should be ‘None’, in fact it would always return True, except
when non-block is specified
And another thread is already holding the lock then it would return False

From the docs on acquire():

Acquire a lock, blocking or non-blocking. 
When invoked without arguments, block until the lock is unlocked, then
set it to locked, and return true. 
When invoked with the blocking argument set to true, do the same thing
as when called without arguments, and return true. 
When invoked with the blocking argument set to false, do not block. If a
call without an argument would block, return false immediately;
otherwise, do the same thing as when called without arguments, and
return true.
History
Date User Action Args
2008-07-11 07:52:35toymachinesetspambayes_score: 0.108772 -> 0.10877205
recipients: + toymachine
2008-07-11 07:52:35toymachinesetspambayes_score: 0.108772 -> 0.108772
messageid: <1215762755.01.0.797304698673.issue3339@psf.upfronthosting.co.za>
2008-07-11 07:52:34toymachinelinkissue3339 messages
2008-07-11 07:52:33toymachinecreate