cpython/Include
Fred Drake 0a4dd390bf Make weak references subclassable:
- 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.
2004-07-02 18:57:45 +00:00
..
abstract.h
bitset.h
boolobject.h
bufferobject.h
cellobject.h
ceval.h Patch #966493: Cleanup generator/eval_frame exposure. 2004-06-27 15:43:12 +00:00
classobject.h
cobject.h
codecs.h
compile.h
complexobject.h
cStringIO.h
datetime.h Add missing backslash for PyDateTimeAPI->Delta_FromDelta() macro. 2004-06-28 00:48:30 +00:00
descrobject.h
dictobject.h
enumobject.h
errcode.h
eval.h
fileobject.h Add weakref support to array.array and file objects. 2004-05-31 00:35:52 +00:00
floatobject.h
frameobject.h SF Bug #215126: Over restricted type checking on eval() function 2004-07-02 06:41:07 +00:00
funcobject.h
genobject.h Patch #966493: Cleanup generator/eval_frame exposure. 2004-06-27 15:43:12 +00:00
graminit.h SF patch #872326: Generator expression implementation 2004-05-19 08:20:33 +00:00
grammar.h
import.h
intobject.h
intrcheck.h
iterobject.h
listobject.h
longintrepr.h
longobject.h
marshal.h Patch #923098: Share interned strings in marshal. 2004-06-27 16:51:46 +00:00
metagrammar.h
methodobject.h
modsupport.h
moduleobject.h
node.h
object.h Two new public API functions, Py_IncRef and Py_DecRef. Useful for 2004-04-22 17:23:49 +00:00
objimpl.h
opcode.h Install two code generation optimizations that depend on NOP. 2004-06-21 16:31:15 +00:00
osdefs.h
parsetok.h
patchlevel.h
pgen.h
pgenheaders.h
py_curses.h
pydebug.h
pyerrors.h
pyfpe.h
pygetopt.h
pymactoolbox.h
pymem.h
pyport.h Patch #871657: Set EDOM for `nan' return values on FreeBSD and OpenBSD. 2004-03-22 08:43:55 +00:00
pystate.h Patch #510695: Add TSC profiling for the VM. 2004-06-08 08:17:44 +00:00
pystrtod.h Patch #774665: Make Python LC_NUMERIC agnostic. 2004-06-08 18:52:54 +00:00
Python.h Patch #966493: Cleanup generator/eval_frame exposure. 2004-06-27 15:43:12 +00:00
pythonrun.h
pythread.h
rangeobject.h
setobject.h Make sets and deques weak referencable. 2004-05-30 07:26:47 +00:00
sliceobject.h
stringobject.h
structmember.h
structseq.h
symtable.h SF patch #872326: Generator expression implementation 2004-05-19 08:20:33 +00:00
sysmodule.h
timefuncs.h Bug 975996: Add _PyTime_DoubleToTimet to C API 2004-06-20 02:50:16 +00:00
token.h
traceback.h
tupleobject.h
ucnhash.h
unicodeobject.h - SF #962502: Add two more methods for unicode type; width() and 2004-06-02 16:49:17 +00:00
weakrefobject.h Make weak references subclassable: 2004-07-02 18:57:45 +00:00