summaryrefslogtreecommitdiff
path: root/Modules/_weakref.c
AgeCommit message (Collapse)AuthorLines
2002-08-02Fix ref(), proxy() docstrings, based on comments from David Abrahams.Fred Drake-3/+4
2001-10-23Convert the ref() and proxy() implementations to use the newFred Drake-2/+2
PyArg_UnpackTuple() function (serves as an example and test case).
2001-10-05Adjust the _weakref module to use the public API for the weak referenceFred Drake-717/+15
objects. This is now simply a shim to give weakref.py access to the underlying implementation.
2001-08-29Use new GC API.Neil Schemenauer-10/+10
2001-08-16Use METH_O where possible (two functions). This does not lead to realFred Drake-29/+24
performance changes since the affected functions are not expected to be used frequently, but reduces the volume of code.
2001-05-03Remove an obsolete comment and a "return" before fallig off the end of aFred Drake-2/+0
void function.
2001-04-13cleanup_helper(): Make sure we invalidate all reference objectsFred Drake-6/+41
before calling any callbacks. This is important since the callback objects only look at themselves to determine that they are invalide. This change avoids a segfault when callbacks use a different reference to an object in the process of being deallocated. This fixes SF bug #415660.
2001-03-23Revert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev).Tim Peters-1/+1
2001-03-22Inform the cycle-detector that the a weakref object no longer needs to beFred Drake-1/+1
tracked as soon as it is clear; this can decrease the number of roots for the cycle detector sooner rather than later in applications which hold on to weak references beyond the time of the invalidation.
2001-02-27Patch #403985: Add support for weak-keyed dictionariesMartin v. Löwis-2/+40
2001-02-26cleanup_helper(): Added missing "void" type for the function, updatedFred Drake-6/+3
comments to reflect reality.
2001-02-26The return value from PyObject_ClearWeakRefs() is no longer meaningful,Fred Drake-3/+3
so make it void.
2001-02-18Move docstrings out of function table to constants defined near theFred Drake-11/+23
function implementations.
2001-02-02Repair legit compiler warning.Tim Peters-1/+1
2001-02-02Teach Windows build about the _weakref module.Tim Peters-1/+1
2001-02-01PEP 205, Weak References -- initial checkin.Fred Drake-0/+757