]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove indirection in threading (issue #10968).
authorÉric Araujo <merwok@netwok.org>
Wed, 27 Jul 2011 22:28:28 +0000 (00:28 +0200)
committerÉric Araujo <merwok@netwok.org>
Wed, 27 Jul 2011 22:28:28 +0000 (00:28 +0200)
commit0cdd4454f37a55bad9c80b6dc1ee328161df4496
tree275ba983baf566c07f6a952142a8041d276ac178
parent9bce311ea4f58ec04cab356a748e173ecfea381c
Remove indirection in threading (issue #10968).

The public names (Thread, Condition, etc.) used to be factory functions
returning instances of hidden classes (_Thread, _Condition, etc.),
because (if Guido recalls correctly) this code pre-dates the ability to
subclass extension types.

It is now possible to inherit from Thread and other classes, without
having to import the private underscored names like multiprocessing did.

A doc update will follow: a patch is under discussion on the issue.
Lib/multiprocessing/dummy/__init__.py
Lib/threading.py
Misc/NEWS