Andrew Svetlov added the comment:

The problem is: threading.Lock raises ThreadingError (which is subclass of 
RuntimeError for 3.3 but not for 3.2), but threading.Condition raises 
RuntimeError for the same reason.

RLock behavior is even worse: it raises ThreadingError if C accelerator is 
available in _thread and RuntimeError otherwise.

I think RuntimeError should be replaced by ThreadingError for _RLock and 
Condition implementations as well as docs need to be updated.

Also I think this patch should be applied to 3.4 only, it is enchacement, not 
bugfix.
About fixing docs for 2.7-3.3: I see nothing wrong if current inconsistency 
will be documented, perhaps as *warning* or *note* block.

----------
components: +Library (Lib)
nosy: +asvetlov
type:  -> enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15829>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to