<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_compare.py, branch 3.4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_compare.py?h=3.4</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_compare.py?h=3.4'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2015-01-26T07:57:07Z</updated>
<entry>
<title>Issue #21408: The default __ne__() now returns NotImplemented if __eq__()</title>
<updated>2015-01-26T07:57:07Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-01-26T07:57:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f4b7a02e932671c6e54e6b48340173cc859ab4c0'/>
<id>urn:sha1:f4b7a02e932671c6e54e6b48340173cc859ab4c0</id>
<content type='text'>
returned NotImplemented.  Removed incorrect implementations of __ne__().
</content>
</entry>
<entry>
<title>#2621 rename test.test_support to test.support</title>
<updated>2008-05-20T21:35:26Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2008-05-20T21:35:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ee8712cda46338d223509cc5751fd36509ad3860'/>
<id>urn:sha1:ee8712cda46338d223509cc5751fd36509ad3860</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merged revisions 60990-61002 via svnmerge from</title>
<updated>2008-02-23T18:30:17Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2008-02-23T18:30:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=05e8be17fd15d8e649e026600f5ab20e1154599f'/>
<id>urn:sha1:05e8be17fd15d8e649e026600f5ab20e1154599f</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r60990 | eric.smith | 2008-02-23 17:05:26 +0100 (Sat, 23 Feb 2008) | 1 line

  Removed duplicate Py_CHARMASK define.  It's already defined in Python.h.
........
  r60991 | andrew.kuchling | 2008-02-23 17:23:05 +0100 (Sat, 23 Feb 2008) | 4 lines

  #1330538: Improve comparison of xmlrpclib.DateTime and datetime instances.
  Remove automatic handling of datetime.date and datetime.time.
  This breaks backward compatibility, but python-dev discussion was strongly
  against this automatic conversion; see the bug for a link.
........
  r60994 | andrew.kuchling | 2008-02-23 17:39:43 +0100 (Sat, 23 Feb 2008) | 1 line

  #835521: Add index entries for various pickle-protocol methods and attributes
........
  r60995 | andrew.kuchling | 2008-02-23 18:10:46 +0100 (Sat, 23 Feb 2008) | 2 lines

  #1433694: minidom's .normalize() failed to set .nextSibling for last element.
  Fix by Malte Helmert
........
  r61000 | christian.heimes | 2008-02-23 18:40:11 +0100 (Sat, 23 Feb 2008) | 1 line

  Patch #2167 from calvin: Remove unused imports
........
  r61001 | christian.heimes | 2008-02-23 18:42:31 +0100 (Sat, 23 Feb 2008) | 1 line

  Patch #1957: syslogmodule: Release GIL when calling syslog(3)
........
  r61002 | christian.heimes | 2008-02-23 18:52:07 +0100 (Sat, 23 Feb 2008) | 2 lines

  Issue #2051 and patch from Alexander Belopolsky:
  Permission for pyc and pyo files are inherited from the py file.
........
</content>
</entry>
<entry>
<title>Issue #1393: object_richcompare() returns NotImplemented instead of</title>
<updated>2008-01-06T00:09:11Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2008-01-06T00:09:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ab078ddb4f8a7ac68f54a3c7f110f4d82e82b16f'/>
<id>urn:sha1:ab078ddb4f8a7ac68f54a3c7f110f4d82e82b16f</id>
<content type='text'>
 False if the objects aren't equal, to give the other side a chance.
</content>
</entry>
<entry>
<title>By default, != returns the opposite of ==, unless the latter returns</title>
<updated>2007-03-27T22:37:34Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-03-27T22:37:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e27dc7230845aa341d9a0bf323fa14912713cf33'/>
<id>urn:sha1:e27dc7230845aa341d9a0bf323fa14912713cf33</id>
<content type='text'>
NotImplemented.

(Is this worth backporting to 2.6?  It seems so useful...!)
</content>
</entry>
<entry>
<title>Rip out 'long' and 'L'-suffixed integer literals.</title>
<updated>2007-01-15T16:59:06Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-01-15T16:59:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2a383d062434c05b73031f0da57fe82b9da8942'/>
<id>urn:sha1:e2a383d062434c05b73031f0da57fe82b9da8942</id>
<content type='text'>
(Rough first cut.)
</content>
</entry>
<entry>
<title>Restructure comparison dramatically.  There is no longer a default</title>
<updated>2006-08-24T00:41:19Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-08-24T00:41:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=47b9ff6ba11fab4c90556357c437cb4feec1e853'/>
<id>urn:sha1:47b9ff6ba11fab4c90556357c437cb4feec1e853</id>
<content type='text'>
*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...
</content>
</entry>
<entry>
<title>__coerce__ is gone, there's nothing to test.</title>
<updated>2006-04-30T02:31:56Z</updated>
<author>
<name>Neal Norwitz</name>
<email>nnorwitz@gmail.com</email>
</author>
<published>2006-04-30T02:31:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cab109779881ee4996a895499fce08380a63f315'/>
<id>urn:sha1:cab109779881ee4996a895499fce08380a63f315</id>
<content type='text'>
This test now passes after removing refs to __coerce__.
</content>
</entry>
<entry>
<title>Merge p3yk branch with the trunk up to revision 45595. This breaks a fair</title>
<updated>2006-04-21T10:40:58Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2006-04-21T10:40:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=49fd7fa4431da299196d74087df4a04f99f9c46f'/>
<id>urn:sha1:49fd7fa4431da299196d74087df4a04f99f9c46f</id>
<content type='text'>
number of tests, all because of the codecs/_multibytecodecs issue described
here (it's not a Py3K issue, just something Py3K discovers):
http://mail.python.org/pipermail/python-dev/2006-April/064051.html

Hye-Shik Chang promised to look for a fix, so no need to fix it here. The
tests that are expected to break are:

test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecs
test_multibytecodec

This merge fixes an actual test failure (test_weakref) in this branch,
though, so I believe merging is the right thing to do anyway.
</content>
</entry>
<entry>
<title>Complete the absolute import patch for the test suite.  All relative</title>
<updated>2002-07-30T23:27:12Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2002-07-30T23:27:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=408b6d34de2b1a6ba690557def435adce9314184'/>
<id>urn:sha1:408b6d34de2b1a6ba690557def435adce9314184</id>
<content type='text'>
imports of test modules now import from the test package.  Other
related oddities are also fixed (like DeprecationWarning filters that
weren't specifying the full import part, etc.).  Also did a general
code cleanup to remove all "from test.test_support import *"'s.  Other
from...import *'s weren't changed.
</content>
</entry>
</feed>
