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

Appearance settings

_Py_RefcntAdd doesn't respect immortality #104142

Copy link
Copy link
Closed
@brandtbucher

Description

@brandtbucher
Issue body actions

This is used by list and tuple internally:

>>> import sys
>>> sys.getrefcount(None) == (1 << 32) - 1
True
>>> refs = [None] * 42
>>> sys.getrefcount(None) == (1 << 32) - 1
False
>>> del refs
>>> sys.getrefcount(None) == (1 << 32) - 1
True

I'll have a PR up in a bit.

CC: @ericsnowcurrently, @eduardo-elizondo

Linked PRs

Metadata

Metadata

Assignees

Labels

3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

Status

Done
Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.