cpython/Modules
Tim Peters 8d81a012ef date and datetime comparison: when we don't know how to
compare against "the other" argument, we raise TypeError,
in order to prevent comparison from falling back to the
default (and worse than useless, in this case) comparison
by object address.

That's fine so far as it goes, but leaves no way for
another date/datetime object to make itself comparable
to our objects.  For example, it leaves Marc-Andre no way
to teach mxDateTime dates how to compare against Python
dates.

Discussion on Python-Dev raised a number of impractical
ideas, and the simple one implemented here:  when we don't
know how to compare against "the other" argument, we raise
TypeError *unless* the other object has a timetuple attr.
In that case, we return NotImplemented instead, and Python
will give the other object a shot at handling the
comparison then.

Note that comparisons of time and timedelta objects still
suffer the original problem, though.
2003-01-24 22:36:34 +00:00
..
expat Remove RCSId; this produces annoying warnings. 2002-07-17 14:45:33 +00:00
.cvsignore
Setup.config.in Patch to make _codecs a builtin module. This is necessary since 2002-12-12 17:37:50 +00:00
Setup.dist PEP 302 + zipimport: 2002-12-30 22:08:05 +00:00
_bsddb.c bugfix: do not double-close DB cursor during deallocation when the 2003-01-17 08:42:50 +00:00
_codecsmodule.c Add docstrings to register, lookup, register_error 2002-10-31 13:36:29 +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
_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 Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
_testcapimodule.c Replace DL_IMPORT with PyMODINIT_FUNC and remove "/export:init..." link 2002-07-23 06:31:15 +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
almodule.c staticforward bites the dust. 2002-07-17 16:30:39 +00:00
ar_beos
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 Patch #661760: Cygwin auto-import module patch 2003-01-06 12:41:26 +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
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
cryptmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
cstubs
datetimemodule.c date and datetime comparison: when we don't know how to 2003-01-24 22:36:34 +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
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
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 Squashed compiler warnings by adding casts, making sure prototypes are in 2002-12-23 21:03:36 +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
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 SF #665913, Fix mmap module core dump with unix 2003-01-10 20:52:16 +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 build working on Redhat 7.2 linux 2.4.7 2003-01-10 21:27:54 +00:00
parsermodule.c SF patch [ 597919 ] compiler package and SET_LINENO 2002-12-31 18:17:44 +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 Get rid of compiler warnings 2003-01-10 15:29:16 +00:00
puremodule.c
pwdmodule.c Patch #614055: Support OpenVMS. 2002-12-06 12:48:53 +00:00
pyexpat.c Conditionalize features not found in PyXML 1.95.2. 2003-01-21 11:09:21 +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 Fix from Michael Stone for SF bug #660476 and #513033 (bogus thread 2003-01-07 20:34:19 +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 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
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 Patch #661760: Cygwin auto-import module patch 2003-01-06 12:41:26 +00:00
socketmodule.h Major overhaul of timeout sockets: 2002-06-13 15:07:44 +00:00
sre.h
sre_constants.h
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
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 --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
timingmodule.c Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototype 2002-08-02 02:27:13 +00:00
tkappinit.c
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
yuvconvert.c
zipimport.c Fix for bug #661136 2003-01-03 11:18:56 +00:00
zlibmodule.c Replace DL_IMPORT with PyMODINIT_FUNC and remove "/export:init..." link 2002-07-23 06:31:15 +00:00