[Python-bugs-list] [ python-Bugs-449572 ] thread.locked() missing

noreply@sourceforge.net noreply@sourceforge.net
Thu, 09 Aug 2001 11:59:08 -0700


Bugs item #449572, was opened at 2001-08-09 11:49
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=449572&group_id=5470

Category: Documentation
>Group: Not a Bug
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: thread.locked() missing

Initial Comment:
According to the Library Reference (section 7.4), there
is a function called locked() in the thread module. In
both Python 2.1.1 and Python 2.2a the function was not
found after importing thread.

>> python
>> ] import thread
>> ] print thread.locked.__doc__
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute
'locked'


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-09 11:59

Message:
Logged In: YES 
user_id=6380

You are misreading the manual.  The locked() method is a
method on locks, not a function in the module.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=449572&group_id=5470