You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r = <unlocked _thread.RLock object owner=0 count=1 at 0x105a98720>
The threading.RLock.__repr__ seems to me erronous because when a threading.RLock is just created, its count attribute should be 0.
This error occurs only with the _thread module.
Bug report
Bug description:
output is:
The
threading.RLock.__repr__seems to me erronous because when athreading.RLockis just created, itscountattribute should be 0.This error occurs only with the
_threadmodule.I can submit a PR.
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
Linked PRs
__repr__value ofthreading.RLockfrom_threadmodule, when just created #134389repr(threading.RLock)(GH-134389) #134528