• Fred Drake's avatar
    When weakref proxies are involved in binary & ternary slot operations, · 73006d02
    Fred Drake yazdı
    the left-hand operand may not be the proxy in all cases.  If it isn't,
    we end up doing two things: a) unwrapping something that isn't a
    PyWeakReference (later resulting in a core dump) and b) passing a
    proxy as the right-hand operand anyway, even though that can't be
    handled by the actual handler (maybe eventually causing a core dump).
    
    This is fixed by always unwrapping all the proxies involved before
    passing anything to the actual handler.
    73006d02
weakrefobject.c 21 KB