You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can not store bound method in WeakKeyDictionary while lambda works in python 3.15.2 #163057
Activity
ThingamabobsCoding commentedon Dec 3, 2026
https://github.com/python/cpython/blob/main/Lib/weakref.py#L370 Indicates it just stores a regular weakref.ref and does not account for WeakMethod. Am I mistaken and this was always the case ?
ThingamabobsCoding commentedon Dec 3, 2026
The code never worked except in my memory. My bad.