]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-111926: Simplify weakref creation logic (#116843)
authormpage <mpage@meta.com>
Fri, 15 Mar 2024 13:56:13 +0000 (06:56 -0700)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2024 13:56:13 +0000 (09:56 -0400)
commit001b21d1c500857fb3721b019eeaf014b5ad76e8
tree0a7618952d1add449810b35ab19a38762d96cd43
parent2cf18a44303b6d84faa8ecffaecc427b53ae121e
gh-111926: Simplify weakref creation logic (#116843)

Since 3.12, allocating a GC object cannot immediately trigger GC. This
allows us to simplify the logic for creating the canonical callback-less
weakref.
Objects/weakrefobject.c