[issue27618] docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

Guido van Rossum report at bugs.python.org
Mon Jul 25 16:55:03 EDT 2016


New submission from Guido van Rossum:

The docs for threading.Lock say


79534:    .. versionchanged:: 3.3
79534:       Changed from a factory function to a class.

but the implementation in threading.py doesn't define a class named Lock, and in fact it is an alias for _thread.allocate_lock.

Are the docs wrong, or is the source? Or did this get changed back later?

----------
messages: 271305
nosy: gvanrossum
priority: normal
severity: normal
status: open
title: docs for threading.Lock claim it's a class (since 3.3), but it's not (and has never been, apparently)

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27618>
_______________________________________


More information about the Python-bugs-list mailing list