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.
M
mpage committed
001b21d1c500857fb3721b019eeaf014b5ad76e8
Parent: 2cf18a4
Committed by GitHub <noreply@github.com>
on 3/15/2024, 1:56:13 PM