• Marius Wachtler's avatar
    Add support for weakref.proxy · f81bb7b7
    Marius Wachtler authored
    I had to change 'new_weakref' to use 'tp_alloc' instead of 'PyObject_GC_New'
    in order to create a weak ref because 'PyObject_GC_New' allocated memory
    is scanned conservatively.
    'tp_alloc' points to 'PystonType_GenericAlloc' and is of PYTHON type.
    f81bb7b7
weakref_proxy.py 557 Bytes