[issue35391] threading.RLock exception handling while waiting

2021-08-28 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35391] threading.RLock exception handling while waiting

2021-08-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: RLock is implemented in C nowadays so this problem doesn't occur anymore: https://github.com/python/cpython/blob/main/Modules/_threadmodule.c#L436-L459 You can of course, however, import the pure Python RLock under the name "_PyRLock", which is still

[issue35391] threading.RLock exception handling while waiting

2021-08-28 Thread Irit Katriel
Irit Katriel added the comment: Have you reproduced the issue on 3.8? I am unable to reproduce this on main (on a Mac). Adding Antoine since I think he fixed a few issues in this area. -- nosy: +iritkatriel, pitrou ___ Python tracker

[issue35391] threading.RLock exception handling while waiting

2018-12-03 Thread Omer Bartal
New submission from Omer Bartal : (tested on python 2.7) Created a threading.Condition(threading.RLock()) A piece of code acquires the lock using a with block and waits (for a notify) While wait() is running a KeyboardInterrupt is raised An exception is raised while exiting the lock's with