Antoine Pitrou <pit...@free.fr> added the comment: I would rather make _thread.error an alias of RuntimeError. That way, we can reconcile the docs and the code without breaking compatibility. Also, importing _thread won't be necessary to catch errors raised in threading objects.
---------- nosy: +gregory.p.smith, pitrou stage: -> needs patch title: Error in the documentation of threading.Lock().release() -> threading.Lock().release() raises _thread.error, not RuntimeError type: -> behavior versions: +Python 3.3 -Python 2.6, Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11140> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com