0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 03:01:36 +01:00
cpython/Modules
Tim Peters 3cfe75470d PyType_Ready(): Complain if the type is a base type, and gc'able, and
tp_free is NULL or PyObject_Del at the end.  Because it's a base type
it must call tp_free in its dealloc function, and because it's gc'able
it must not call PyObject_Del.

inherit_slots():  Don't inherit tp_free unless the type and its base
agree about whether they're gc'able.  If the type is gc'able and the
base is not, and the base uses the default PyObject_Del for its
tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
default for a gc'able type).

cPickle.c:  The Pickler and Unpickler types claim to be base classes
and gc'able, but their dealloc functions didn't call tp_free.
Repaired that.  Also call PyType_Ready() on these typeobjects, so
that the correct (PyObject_GC_Del) default memory-freeing function
gets plugged into these types' tp_free slots.
2003-05-21 21:29:48 +00:00
..
expat Integrate the patch from expat.h 1.51; needed for some C compilers. 2003-02-07 02:15:56 +00:00
_bsddb.c DB.remove() needs to set the internal DB handle to NULL after being called. 2003-05-15 00:13:18 +00:00
_codecsmodule.c Fix for [ 543344 ] Interpreter crashes when recoding; suggested 2003-02-04 19:35:03 +00:00
_csv.c Make readers and writers participate in garbage collection. 2003-04-14 02:20:55 +00:00
_curses_panel.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
_cursesmodule.c Always call tparm with 10 arguments. It seems it's not varargs i 2002-11-21 14:17:51 +00:00
_hotshot.c Renamed PyObject_GenericGetIter to PyObject_SelfIter 2003-03-17 19:46:11 +00:00
_localemodule.c Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize, 2003-03-05 15:13:47 +00:00
_randommodule.c PyObject_IsTrue() can return an error condition. 2003-04-23 00:14:18 +00:00
_sre.c Allow _sre.c to compile with Python 2.2 2003-04-30 13:09:08 +00:00
_ssl.c Fix compiler warning 2003-02-02 17:08:33 +00:00
_testcapimodule.c New support functions for test_getargs2. 2003-04-24 16:14:27 +00:00
_tkinter.c Only return objects if wantobjects is set in GetVar. 2003-05-19 19:57:42 +00:00
_weakref.c Fix ref(), proxy() docstrings, based on comments from David Abrahams. 2002-08-02 20:23:40 +00:00
.cvsignore
addrinfo.h Rename LONG_LONG to PY_LONG_LONG. Fixes #710285. 2003-03-29 10:06:18 +00:00
almodule.c SF patch #667548, Add some audio constants by Michael Pruett 2003-03-30 21:49:18 +00:00
ar_beos
arraymodule.c Fix array.array.insert(), so that it treats negative indices as 2003-05-18 03:15:10 +00:00
audioop.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
binascii.c binascii_a2b_base64: Properly return an empty string if the input was all 2003-03-17 11:24:29 +00:00
bsddbmodule.c add open function to bsddb185 module so the file format sniffing can be 2003-05-06 20:38:52 +00:00
bz2module.c Patch #708495: Port more stuff to OpenVMS. 2003-05-03 09:14:54 +00:00
ccpython.cc
cdmodule.c
cgen.py
cgensupport.c
cgensupport.h
clmodule.c
cmathmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
config.c.in Removed WITH_CYCLE_GC #ifdef-ery. Holes: 2002-07-07 03:59:34 +00:00
cPickle.c PyType_Ready(): Complain if the type is a base type, and gc'able, and 2003-05-21 21:29:48 +00:00
cryptmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
cStringIO.c SF patch 695710: fix bug 678519: cStringIO self iterator 2003-04-24 15:50:11 +00:00
cstubs
datetimemodule.c Added more words about the abuse of the tp_alloc nitems argument 2003-05-18 02:24:46 +00:00
dbmmodule.c Fix SF # 640557, '64-bit' systems and the dbm module 2002-11-22 23:29:31 +00:00
dlmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
errnomodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
fcntlmodule.c Simple fix for 2003-05-09 10:45:20 +00:00
flmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
fmmodule.c staticforward bites the dust. 2002-07-17 16:30:39 +00:00
fpectlmodule.c Patch #708495: Port more stuff to OpenVMS. 2003-05-03 09:14:54 +00:00
fpetestmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
gcmodule.c - New C API PyGC_Collect(), same as calling gc.collect(). 2003-04-17 17:29:22 +00:00
gdbmmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
getaddrinfo.c Wipe out some warnings about non-ANSI code and an unsafe arg to 2002-07-17 14:33:34 +00:00
getbuildinfo.c Patch #696645: Remove VMS code with uncertain authorship. 2003-03-05 14:15:21 +00:00
getnameinfo.c
getpath.c Make sure zip_path is null-terminated, since it's on the stack 2002-12-31 12:45:12 +00:00
glmodule.c SF patch #577031, remove PyArg_NoArgs() since it's deprecated 2002-07-28 15:23:23 +00:00
grpmodule.c Patch #708495: Port more stuff to OpenVMS. 2003-05-03 09:14:54 +00:00
imageop.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
imgfile.c
itertoolsmodule.c * Added a substantial number of edge case and argument tests for 2003-05-03 05:59:48 +00:00
ld_so_aix
ld_so_beos
linuxaudiodev.c Allow the device name to be passed to linuxaudiodev.open(), for 2002-11-27 22:19:15 +00:00
main.c Patch #672053: Return a result from Py_Main, instead of exiting. 2003-03-30 17:09:58 +00:00
makesetup
makexp_aix
mathmodule.c SF patch #659536: Use PyArg_UnpackTuple where possible. 2002-12-29 16:33:45 +00:00
md5.h Issue an explicit error when we can't find an appropriate type for 2002-05-29 14:00:22 +00:00
md5c.c
md5module.c SF #621948, update docstring for md5 by David M. Cooke. Will backport. 2002-10-11 21:53:01 +00:00
mmapmodule.c Patch #708495: Port more stuff to OpenVMS. 2003-05-03 09:14:54 +00:00
mpzmodule.c Fix memory leaks reported by valgrind 2002-08-14 02:03:50 +00:00
nismodule.c SF #633013, Fix NIS causing interpreter core dump 2002-11-04 23:21:09 +00:00
operator.c SF patch #670423: Add missing identity tests to operator.c 2003-01-18 23:22:20 +00:00
ossaudiodev.c Use fcntl() to put the audio device *back* into blocking mode after 2003-04-04 01:47:42 +00:00
parsermodule.c Don't use (PyObject *)PyObject_Type(x). It is a leaky and verbose way 2003-04-09 17:53:22 +00:00
pcre-int.h
pcre.h
pcremodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
posixmodule.c Patch #708495: Port more stuff to OpenVMS. 2003-05-03 09:14:54 +00:00
puremodule.c
pwdmodule.c Patch #614055: Support OpenVMS. 2002-12-06 12:48:53 +00:00
pyexpat.c Fix memory leak: free memory storing the content model passed to the 2003-02-02 03:54:17 +00:00
pypcre.c Undefine DPRINTF before defining it, there was a conflict with some other 2002-06-26 20:41:30 +00:00
python.c Apparently FreeBSD enables some HW floating-point exceptions by default. 2002-12-28 21:56:08 +00:00
readline.c get_completer() takes no args 2003-03-01 15:19:41 +00:00
regexmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
regexpr.c Replace abort with Py_FatalError. 2002-08-07 16:21:51 +00:00
regexpr.h
resource.c Get build working with pre-C99 compilers 2003-03-30 20:51:29 +00:00
rgbimgmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
rotormodule.c [Patch #679505] Trigger DeprecationWarning on importing the rotor module 2003-04-24 13:17:13 +00:00
selectmodule.c SF bug 684667: Modules/selectmodule.c returns NULL without exception set. 2003-02-11 17:18:58 +00:00
Setup.config.in Patch to make _codecs a builtin module. This is necessary since 2002-12-12 17:37:50 +00:00
Setup.dist Revert Patch #670715: iconv support. 2003-04-03 04:49:12 +00:00
sgimodule.c
shamodule.c Use personal e-mail address 2002-10-30 21:08:34 +00:00
signalmodule.c Take out my (long since disabled) POSIX signal mask handling code. 2003-03-13 13:56:53 +00:00
socketmodule.c Patch #734231: Update RiscOS support. In particular, correct 2003-05-10 07:36:56 +00:00
socketmodule.h Patch #708495: Port more stuff to OpenVMS. 2003-05-03 09:14:54 +00:00
sre_constants.h Fully support 32-bit codes. Enable BIGCHARSET in UCS-4 builds. 2003-04-19 12:56:08 +00:00
sre.h
stropmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
structmodule.c Rename LONG_LONG to PY_LONG_LONG. Fixes #710285. 2003-03-29 10:06:18 +00:00
sunaudiodev.c staticforward bites the dust. 2002-07-17 16:30:39 +00:00
svmodule.c
symtablemodule.c Allow more docstrings to be removed during compilation in some modules 2002-08-13 22:20:41 +00:00
syslogmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
termios.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
testcapi_long.h
threadmodule.c When an unhandled exception happens, report the repr() of the function 2003-04-29 19:44:05 +00:00
timemodule.c Patch #734231: Update RiscOS support. In particular, correct 2003-05-10 07:36:56 +00:00
timing.h
timingmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
tkappinit.c
unicodedata_db.h Add unidata_version. Bump generator version number. 2002-11-25 09:13:37 +00:00
unicodedata.c Fix SF bug #694816, remove comparison of unsigned value < 0 2003-02-28 03:14:37 +00:00
unicodename_db.h Add unidata_version. Bump generator version number. 2002-11-25 09:13:37 +00:00
xreadlinesmodule.c Renamed PyObject_GenericGetIter to PyObject_SelfIter 2003-03-17 19:46:11 +00:00
xxmodule.c Another dummy type. 2003-02-13 18:44:57 +00:00
xxsubtype.c add some example docstrings using PyDoc_STR 2002-08-14 01:45:37 +00:00
yuv.h
yuvconvert.c
zipimport.c Patch #734231: Update RiscOS support. In particular, correct 2003-05-10 07:36:56 +00:00
zlibmodule.c - Thanks to Scott David Daniels, a subtle bug in how the zlib 2003-02-03 20:45:52 +00:00