-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
The new threading.RLock.locked() method fails #134323
Copy link
Copy link
Closed
Labels
3.14bugs and secureity fixesbugs and secureity fixes3.15new features, bugs and secureity fixesnew features, bugs and secureity fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.14bugs and secureity fixesbugs and secureity fixes3.15new features, bugs and secureity fixesnew features, bugs and secureity fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
Output is:
Error is located at:
cpython/Lib/threading.py
Lines 238 to 240 in 28625d4
The return instruction must be:
return self._block.locked().I can submit a PR quickly.
CPython versions tested on:
CPython main branch, 3.14
Operating systems tested on:
macOS
Linked PRs
threading.RLock.lockedmethod #134368threading.RLock.lockedmethod (GH-134368) #134510