cpython/Lib/plat-mac
Guido van Rossum 47b9ff6ba1 Restructure comparison dramatically. There is no longer a default
*ordering* between objects; there is only a default equality test
(defined by an object being equal to itself only).  Read the comment
in object.c.  The current implementation never uses a three-way
comparison to compute a rich comparison, but it does use a rich
comparison to compute a three-way comparison.  I'm not quite done
ripping out all the calls to PyObject_Compare/Cmp, or replacing
tp_compare implementations with tp_richcompare implementations;
but much of that has happened (to make most unit tests pass).

The following tests still fail, because I need help deciding
or understanding:

test_codeop -- depends on comparing code objects
test_datetime -- need Tim Peters' opinion
test_marshal -- depends on comparing code objects
test_mutants -- need help understanding it

The problem with test_codeop and test_marshal is this: these tests
compare two different code objects and expect them to be equal.
Is that still a feature we'd like to support?  I've temporarily
removed the comparison and hash code from code objects, so they
use the default (equality by pointer only) comparison.

For the other two tests, run them to see for yourself.
(There may be more failing test with "-u all".)

A general problem with getting lots of these tests to pass is
the reality that for object types that have a natural total ordering,
implementing __cmp__ is much more convenient than implementing
__eq__, __ne__, __lt__, and so on.  Should we go back to allowing
__cmp__ to provide a total ordering?  Should we provide some other
way to implement rich comparison with a single method override?
Alex proposed a __key__() method; I've considered a __richcmp__()
method.  Or perhaps __cmp__() just shouldn't be killed off...
2006-08-24 00:41:19 +00:00
..
Carbon Merge the rest of the trunk. 2006-06-08 15:35:45 +00:00
lib-scriptpackages Fix test_scriptpackage with pure will power. 2006-04-21 15:44:20 +00:00
Audio_mac.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
EasyDialogs.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
FrameWork.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
MiniAEFrame.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
PixMapWrapper.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
aepack.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
aetools.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
aetypes.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
applesingle.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
appletrawmain.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
appletrunner.py Detabbed. 2003-04-09 13:25:43 +00:00
argvemulator.py Merge the rest of the trunk. 2006-06-08 15:35:45 +00:00
bgenlocations.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
buildtools.py Fix for #1091468: DESTROOTed frameworkinstalls fail. Added a --destroot 2004-12-27 15:51:03 +00:00
bundlebuilder.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
cfmfile.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
dialogs.rsrc Changing the window type to movable modal isn't enough to make the dialogs movable: apprently you also need to set a bit in the dlgx resource. Did this. 2003-02-27 22:36:20 +00:00
errors.rsrc Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both 2002-12-30 22:04:23 +00:00
findertools.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
gensuitemodule.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
ic.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
icopen.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
macerrors.py Detabbed. 2003-04-09 13:25:43 +00:00
macfs.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
macostools.py [ 1243081 ] repair typos 2005-07-22 18:39:19 +00:00
macresource.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
pimp.py Get rid of a bunch more has_key() uses. We *really* need a tool for this. 2006-08-20 16:25:10 +00:00
plistlib.py Restructure comparison dramatically. There is no longer a default 2006-08-24 00:41:19 +00:00
terminalcommand.py some old changes to this unused module 2003-06-21 14:49:14 +00:00
videoreader.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00