Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
Bug report
Bug description:
importthreadingr=threading.RLock()print(f"{r=}")
output is:
r = <unlocked _thread.RLock object owner=0 count=1 at 0x105a98720>
Thethreading.RLock.__repr__
seems to me erronous because when athreading.RLock
is just created, itscount
attribute should be 0.
This error occurs only with the_thread
module.
I can submit a PR.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS