Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵ | Christian Heimes | 2007-12-19 | 1 | -2/+2 |
| | | | | Py_REFCNT. Macros for b/w compatibility are available. | ||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 1 | -2/+2 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | _PyWeakref_GetWeakrefCount() now returns a Py_ssize_t instead of long. | Neal Norwitz | 2006-08-02 | 1 | -3/+3 |
| | |||||
* | Make weak references subclassable: | Fred Drake | 2004-07-02 | 1 | -22/+3 |
| | | | | | | | | | | | | | | | | | | | | | | - weakref.ref and weakref.ReferenceType will become aliases for each other - weakref.ref will be a modern, new-style class with proper __new__ and __init__ methods - weakref.WeakValueDictionary will have a lighter memory footprint, using a new weakref.ref subclass to associate the key with the value, allowing us to have only a single object of overhead for each dictionary entry (currently, there are 3 objects of overhead per entry: a weakref to the value, a weakref to the dictionary, and a function object used as a weakref callback; the weakref to the dictionary could be avoided without this change) - a new macro, PyWeakref_CheckRefExact(), will be added - PyWeakref_CheckRef() will check for subclasses of weakref.ref This closes SF patch #983019. | ||||
* | Fix ref(), proxy() docstrings, based on comments from David Abrahams. | Fred Drake | 2002-08-02 | 1 | -3/+4 |
| | |||||
* | Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype | Mark Hammond | 2002-08-02 | 1 | -1/+1 |
| | | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches. | ||||
* | Patch #568124: Add doc string macros. | Martin v. Löwis | 2002-06-13 | 1 | -8/+8 |
| | |||||
* | Convert the ref() and proxy() implementations to use the new | Fred Drake | 2001-10-23 | 1 | -2/+2 |
| | | | | PyArg_UnpackTuple() function (serves as an example and test case). | ||||
* | Adjust the _weakref module to use the public API for the weak reference | Fred Drake | 2001-10-05 | 1 | -717/+15 |
| | | | | | objects. This is now simply a shim to give weakref.py access to the underlying implementation. | ||||
* | Use new GC API. | Neil Schemenauer | 2001-08-29 | 1 | -10/+10 |
| | |||||
* | Use METH_O where possible (two functions). This does not lead to real | Fred Drake | 2001-08-16 | 1 | -29/+24 |
| | | | | | performance changes since the affected functions are not expected to be used frequently, but reduces the volume of code. | ||||
* | Remove an obsolete comment and a "return" before fallig off the end of a | Fred Drake | 2001-05-03 | 1 | -2/+0 |
| | | | | void function. | ||||
* | cleanup_helper(): Make sure we invalidate all reference objects | Fred Drake | 2001-04-13 | 1 | -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. | ||||
* | Revert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev). | Tim Peters | 2001-03-23 | 1 | -1/+1 |
| | |||||
* | Inform the cycle-detector that the a weakref object no longer needs to be | Fred Drake | 2001-03-22 | 1 | -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. | ||||
* | Patch #403985: Add support for weak-keyed dictionaries | Martin v. Löwis | 2001-02-27 | 1 | -2/+40 |
| | |||||
* | cleanup_helper(): Added missing "void" type for the function, updated | Fred Drake | 2001-02-26 | 1 | -6/+3 |
| | | | | comments to reflect reality. | ||||
* | The return value from PyObject_ClearWeakRefs() is no longer meaningful, | Fred Drake | 2001-02-26 | 1 | -3/+3 |
| | | | | so make it void. | ||||
* | Move docstrings out of function table to constants defined near the | Fred Drake | 2001-02-18 | 1 | -11/+23 |
| | | | | function implementations. | ||||
* | Repair legit compiler warning. | Tim Peters | 2001-02-02 | 1 | -1/+1 |
| | |||||
* | Teach Windows build about the _weakref module. | Tim Peters | 2001-02-02 | 1 | -1/+1 |
| | |||||
* | PEP 205, Weak References -- initial checkin. | Fred Drake | 2001-02-01 | 1 | -0/+757 |