R. David Murray added the comment:

Writing such a decorator is pretty trivial to do.  On the other hand, I've done 
it often enough that I could be convinced it is useful to add.

I think it would be better to have a decorator generator that takes a lock as 
its argument, however, since an application might well want to use the same 
lock for sections that it doesn't make sense to decorate, or use an RLock 
instead of a lock.  If no lock is passed, a default Lock could be created.

----------
nosy: +r.david.murray

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

Reply via email to