[issue11140] threading.Lock().release() raises _thread.error, not RuntimeError

Antoine Pitrou report at bugs.python.org
Mon Feb 7 16:41:15 CET 2011


Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue11140>
_______________________________________


More information about the Python-bugs-list mailing list