[issue36688] _dummy_thread lacks an RLock implementaiton

Brett Cannon report at bugs.python.org
Mon Apr 22 15:35:15 EDT 2019


Brett Cannon <brett at python.org> added the comment:

Basically _thread.RLock was added without an equivalent in _dummy_thread. Add that and it will fix the issue. It probably wouldn't be too hard since you have to implement it as if it's single-threaded and there's already a lock class in _dummy_thread to work off of. Heck, functools used to have its own dummy version in https://github.com/python/cpython/commit/a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344 but it got ripped out, although it was extremely basic so I don't know if it would be the best version to put into _dummy_thread.

----------
keywords: +3.7regression, easy
title: import dummy_threading causes ImportError -> _dummy_thread lacks an RLock implementaiton

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36688>
_______________________________________


More information about the Python-bugs-list mailing list