Antoine Pitrou added the comment: I'm fine with a low-level lock, though as Mark says you could use _thread._RLock(). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue30441> _______________________________________