cpython/Modules
Tim Peters 07534a607b Comparison for timedelta, time, date and datetime objects: __eq__ and
__ne__ no longer complain if they don't know how to compare to the other
thing.  If no meaningful way to compare is known, saying "not equal" is
sensible.  This allows things like

    if adatetime in some_sequence:
and
    somedict[adatetime] = whatever

to work as expected even if some_sequence contains non-datetime objects,
or somedict non-datetime keys, because they only call __eq__.

It still complains (raises TypeError) for mixed-type comparisons in
contexts that require a total ordering, such as list.sort(), use as a
key in a BTree-based data structure, and cmp().
2003-02-07 22:50:28 +00:00
..
expat Integrate the patch from expat.h 1.51; needed for some C compilers. 2003-02-07 02:15:56 +00:00
.cvsignore Add Setup.config 2000-06-30 16:09:01 +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 Add _iconv_codec to Setup.dist. Use PyModule_ functions. 2003-01-26 11:48:20 +00:00
_bsddb.c version 4.1.4 (4.1.3 just released) 2003-02-03 04:28:26 +00:00
_codecsmodule.c Fix for [ 543344 ] Interpreter crashes when recoding; suggested 2003-02-04 19:35:03 +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 Patch #661760: Cygwin auto-import module patch 2003-01-06 12:41:26 +00:00
_iconv_codec.c Remove forward static reference since it is not required 2003-02-04 20:46:50 +00:00
_localemodule.c Use wcscoll for _locale.strcoll if available. 2002-12-21 18:34:06 +00:00
_randommodule.c Patch #661760: Cygwin auto-import module patch 2003-01-06 12:41:26 +00:00
_sre.c fix for SF #635398 (don't "downcast" return strings from unicode to ascii) 2002-11-22 12:46:35 +00:00
_ssl.c Fix compiler warning 2003-02-02 17:08:33 +00:00
_testcapimodule.c _PyLong_NumBits(): The definition of this was too specific to the quirky 2003-01-31 15:52:05 +00:00
_tkinter.c Convert booleans to integers in IntVar.set. Fixes #671741. 2003-01-22 09:17:38 +00:00
_weakref.c Fix ref(), proxy() docstrings, based on comments from David Abrahams. 2002-08-02 20:23:40 +00:00
addrinfo.h Undefine addrinfo.h constants if the system header defined them. 2001-12-06 19:04:35 +00:00
almodule.c staticforward bites the dust. 2002-07-17 16:30:39 +00:00
ar_beos Moved BeOS/ar-fake and BeOS/linkmodule to Modules/ar_beos and 2001-02-16 03:24:50 +00:00
arraymodule.c SF patch #662433: Fill arraymodule's tp_iter and sq_contains slots 2003-01-07 01:58:52 +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 base64.decodestring('') should return '' instead of raising an 2002-08-15 22:14:24 +00:00
bsddbmodule.c Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185. 2002-11-19 08:09:52 +00:00
bz2module.c Patch #661760: Cygwin auto-import module patch 2003-01-06 12:41:26 +00:00
cPickle.c More typo repair. 2003-02-05 03:53:10 +00:00
cStringIO.c SF patch 660559: Use METH_O and METH_NOARGS where possible 2003-01-03 08:24:58 +00:00
ccpython.cc Patch and new file by Geoff Furnish for C++ compilation. 1999-12-16 17:52:08 +00:00
cdmodule.c Repair widespread misuse of _PyString_Resize. Since it's clear people 2002-04-27 18:44:32 +00:00
cgen.py Convert a pile of obvious "yes/no" functions to return bool. 2002-04-04 22:55:58 +00:00
cgensupport.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
cgensupport.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
clmodule.c Repair widespread misuse of _PyString_Resize. Since it's clear people 2002-04-27 18:44:32 +00:00
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
cryptmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
cstubs REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
datetimemodule.c Comparison for timedelta, time, date and datetime objects: __eq__ and 2003-02-07 22:50:28 +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 Expose I_ constants. Auto-detect stropts.h. Properly configure the slave terminal. 2003-01-01 09:51:12 +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 for the DEC Alpha under Linux, by Lee Busby. 2002-09-26 16:52:02 +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 Fix typo. 2002-11-09 19:54:06 +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 #614055: Support OpenVMS. 2002-12-06 12:48:53 +00:00
getnameinfo.c Remove INET6 define. Use ENABLE_IPV6 instead. 2001-12-02 10:15:37 +00:00
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 Deal with a NULL gr_passwd. Reported by Anders Qvist. 2002-09-17 07:05:25 +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 Convert METH_OLDARGS -> METH_VARARGS: also PyArg_Parse -> PyArg_ParseTuple 2002-03-31 15:43:28 +00:00
itertoolsmodule.c * Eliminated tuple re-use in imap(). Doing it correctly made the code 2003-02-07 07:26:25 +00:00
ld_so_aix Mod suggested by Donn Cave -- invoke makexp_aix relative to $0 1997-09-03 00:45:30 +00:00
ld_so_beos Remove a hard coded Python version, and a now incorrect relative path. Closes 2001-02-16 03:27:35 +00:00
linuxaudiodev.c Allow the device name to be passed to linuxaudiodev.open(), for 2002-11-27 22:19:15 +00:00
main.c Squashed compiler warnings by adding casts, making sure prototypes are in 2002-12-23 21:03:36 +00:00
makesetup [Patch #536769] Add -Xcompiler flag for adding arguments and switches for 2002-03-29 18:00:19 +00:00
makexp_aix remove C++ entries of the form Class::method 1998-04-09 21:46:02 +00:00
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 Patch #463421: speed up md5 module with real memcpy/set. 2001-09-24 17:14:40 +00:00
md5module.c SF #621948, update docstring for md5 by David M. Cooke. Will backport. 2002-10-11 21:53:01 +00:00
mmapmodule.c SF patch #682514, mmapmodule.c write fix for LP64 executables 2003-02-07 19:44:56 +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 Get ossaudiodev to compile on freebsd 4.7 2003-02-02 17:59:06 +00:00
parsermodule.c Teach the parsermodule about floor division. Fixes 2003-01-29 14:20:23 +00:00
pcre-int.h AMK's revised version of the previous patch. 1998-05-07 15:32:44 +00:00
pcre.h Jack Jansen: Mac Carbon: don't include sys/types if we don't have it 2000-06-28 20:56:30 +00:00
pcremodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
posixmodule.c Get rid of compiler warnings 2003-01-10 15:29:16 +00:00
puremodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
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 I was in this module anyway, so I did some janitorial things. 2003-01-30 14:17:16 +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 Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either 2000-07-16 12:04:32 +00:00
resource.c Fix SF #632624, test_resource failure on alpha/64bit 2002-11-02 17:46:24 +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 Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
selectmodule.c Don't use PyNumber_Float() since it's is nearly useless. Instead, rely on 2002-11-18 16:02:29 +00:00
sgimodule.c Convert more METH_OLDARGS & PyArg_Parse() 2002-04-02 18:26:33 +00:00
shamodule.c Use personal e-mail address 2002-10-30 21:08:34 +00:00
signalmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
socketmodule.c SF patch #678257 by Geoff Talvola. 2003-01-31 18:15:58 +00:00
socketmodule.h Major overhaul of timeout sockets: 2002-06-13 15:07:44 +00:00
sre.h Remove extraneous #define as per effbot's instructions in: 2002-03-18 18:46:14 +00:00
sre_constants.h added martin's BIGCHARSET patch to SRE 2.1.1. martin reports 2x 2001-07-02 16:58:38 +00:00
stropmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
structmodule.c (Most of) SF patch 601369 (Christos Georgiou): obmalloc,structmodule: 2002-09-03 18:42:21 +00:00
sunaudiodev.c staticforward bites the dust. 2002-07-17 16:30:39 +00:00
svmodule.c Patch #477750: Use METH_ constants in Modules. 2002-01-17 23:15:58 +00:00
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 Fix error in comment, and in test_long_api and test_longlong_api remove 2001-06-16 08:10:13 +00:00
threadmodule.c --with(out)-thread is deprecated according to configure --help 2002-09-05 21:31:04 +00:00
timemodule.c Windows flavor of floatsleep(): folded long lines, introduced a temp 2003-01-19 04:54:58 +00:00
timing.h remove rcs history 1996-01-26 21:10:22 +00:00
timingmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
tkappinit.c Mods by Tony Lownds (patch 490100, slightly massaged by me) to make Tkinter 2001-12-09 23:15:56 +00:00
unicodedata.c Remove C++ comment. 2002-12-07 14:56:36 +00:00
unicodedata_db.h Add unidata_version. Bump generator version number. 2002-11-25 09:13:37 +00:00
unicodename_db.h Add unidata_version. Bump generator version number. 2002-11-25 09:13:37 +00:00
xreadlinesmodule.c Mark xreadlines deprecated. Don't use f.xreadlines() in test_iter.py. 2002-08-06 17:14:04 +00:00
xxmodule.c Demonstrate use of PyType_Ready() in the example. 2002-12-29 17:16:49 +00:00
xxsubtype.c add some example docstrings using PyDoc_STR 2002-08-14 01:45:37 +00:00
yuv.h REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
yuvconvert.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
zipimport.c Fix for bug #661136 2003-01-03 11:18: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