Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

repr ofthreading.RLock is erronous with the_thread module #134322

Closed
Labels
extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error
@YvesDup

Description

@YvesDup

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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp