Skip to content

[3.11.0rc1] Undocumented behavior: Large refcounts on small objects #96730

Closed
@Martmists-GH

Description

@Martmists-GH

Some objects seem to have unreasonably large refcounts, and this is not documented in the docs nor on the changelog.

3.10.6:

>>> from sys import getrefcount as ref
>>> ref(0)
409
>>> ref("a")
15
>>> ref(1000)
3

3.11.0rc1:

>>> from sys import getrefcount as ref
>>> ref(0)
1000000594
>>> ref("a")
1000000009
>>> ref(1000)
3

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixesdocsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions