0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 16:45:42 +01:00
cpython/Modules
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
..
cjkcodecs Remove warning (static not being first) when building with -W 2004-06-13 20:31:17 +00:00
expat
_bisectmodule.c
_bsddb.c Adds support for DB.pget and DBCursor.pget methods. 2004-06-28 04:06:49 +00:00
_codecsmodule.c
_csv.c Use PyArg_UnpackTuple() where possible. 2004-06-20 04:23:19 +00:00
_curses_panel.c
_cursesmodule.c
_heapqmodule.c Improve the documented advice on how to best use heapq.heapreplace(). 2004-06-20 09:07:53 +00:00
_hotshot.c SF patch #969180, hotshot incorrectly computes elapsed time by Jason 2004-06-13 20:45:11 +00:00
_localemodule.c Patch #774665: Make Python LC_NUMERIC agnostic. 2004-06-08 18:52:54 +00:00
_randommodule.c
_sre.c Fixed end-of-loop code not reached warning when using SunPro C 2004-06-17 18:27:18 +00:00
_ssl.c
_testcapimodule.c
_tkinter.c
_weakref.c Make weak references subclassable: 2004-07-02 18:57:45 +00:00
.cvsignore
addrinfo.h
almodule.c
ar_beos
arraymodule.c Add weakref support to array.array and file objects. 2004-05-31 00:35:52 +00:00
audioop.c
binascii.c Valgrind was reporting an uninitialized read for bad input. 2004-06-06 20:13:10 +00:00
bsddbmodule.c
bz2module.c
ccpython.cc
cdmodule.c
cgen.py
cgensupport.c
cgensupport.h
clmodule.c
cmathmodule.c Patch #826074: cmath.log optional base argument, fixes #823209 2004-06-14 07:40:10 +00:00
collectionsmodule.c Add a comment with implementation notes. 2004-06-26 04:42:06 +00:00
config.c.in
cPickle.c Patch #774665: Make Python LC_NUMERIC agnostic. 2004-06-08 18:52:54 +00:00
cryptmodule.c
cStringIO.c sizeof(char) is 1, by definition, so get rid of that expression in 2004-06-27 17:24:49 +00:00
cstubs
datetimemodule.c SF patch 876130: add C API to datetime module, from Anthony Tuininga. 2004-06-20 22:41:32 +00:00
dbmmodule.c
dlmodule.c
errnomodule.c
fcntlmodule.c Warn abou missing mutate flag to ioctl. Fixes #696535. 2004-06-03 12:47:26 +00:00
flmodule.c
fmmodule.c
fpectlmodule.c
fpetestmodule.c
gc_weakref.txt
gcmodule.c
gdbmmodule.c
getaddrinfo.c
getbuildinfo.c
getnameinfo.c
getpath.c Modules/getpath.c now compiles properly under OS X when using the 2004-06-26 04:03:06 +00:00
glmodule.c
grpmodule.c
imageop.c
imgfile.c
itertoolsmodule.c SF #950057: itertools.chain doesn't "process" exceptions as they occur 2004-05-08 19:49:42 +00:00
ld_so_aix
ld_so_beos
linuxaudiodev.c
main.c
makesetup
makexp_aix
mathmodule.c
md5.h
md5c.c
md5module.c
mmapmodule.c Set data pointer to NULL after an error; this keeps the mmap_dealloc() function from trying to do msync(-1);munmap(-1). 2004-05-19 14:39:08 +00:00
mpzmodule.c
nismodule.c
operator.c
ossaudiodev.c SF #832236: merge from release23-maint branch: wrap a bunch of 2004-05-11 01:34:55 +00:00
parsermodule.c SF patch #872326: Generator expression implementation 2004-05-19 08:20:33 +00:00
posixmodule.c Return unicode strings from _getfullpathname even on W9X. Fixes #924703 . 2004-06-15 18:49:58 +00:00
puremodule.c
pwdmodule.c
pyexpat.c
python.c
readline.c stupid, stupid, stupid... raw_input() already supports readline() if the 2004-05-24 14:20:16 +00:00
regexmodule.c
regexpr.c
regexpr.h
resource.c
rgbimgmodule.c
rotormodule.c
selectmodule.c
Setup.config.in
Setup.dist
sgimodule.c
shamodule.c
signalmodule.c silly typo 2004-06-17 15:55:53 +00:00
socketmodule.c Added socket.getservbyport(), and make its second argument and that of 2004-06-28 00:50:43 +00:00
socketmodule.h
sre_constants.h
sre.h Add weakref support to sockets and re pattern objects. 2004-05-31 03:09:25 +00:00
stropmodule.c Patch #774665: Make Python LC_NUMERIC agnostic. 2004-06-08 18:52:54 +00:00
structmodule.c
sunaudiodev.c
svmodule.c
symtablemodule.c
syslogmodule.c
termios.c
testcapi_long.h
threadmodule.c
timemodule.c Bug 975996: Add _PyTime_DoubleToTimet to C API 2004-06-20 02:50:16 +00:00
timing.h
timingmodule.c
tkappinit.c Remove warning about implicit declaration of strcmp() 2004-06-13 20:29:55 +00:00
unicodedata_db.h - SF #962502: Add two more methods for unicode type; width() and 2004-06-02 16:49:17 +00:00
unicodedata.c Special case normalization of empty strings. Fixes #924361. 2004-04-17 19:36:48 +00:00
unicodename_db.h - SF #962502: Add two more methods for unicode type; width() and 2004-06-02 16:49:17 +00:00
xreadlinesmodule.c
xxmodule.c
xxsubtype.c
yuv.h
yuvconvert.c
zipimport.c
zlibmodule.c