Kristján Valur Jónsson <krist...@ccpgames.com> added the comment:

Well, the rationale for keeping the try_finally is that the Condition should 
continue to work with other Locks, as long as they provide _release_save and 
_acquire_restore methods.  Lock._acquire_condtion onnly knows Lock and RLock 
intimately enough to automatically reaquire them with teh GIL released.

If I remove the _acuire_restore, we have prohibited the Condition class from 
using customized locks, or subclasses of locks.

----------

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

Reply via email to