<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/mapping_tests.py, branch v3.0a2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/mapping_tests.py?h=v3.0a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/mapping_tests.py?h=v3.0a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2007-04-21T15:47:16Z</updated>
<entry>
<title>PEP 3114: rename .next() to .__next__() and add next() builtin.</title>
<updated>2007-04-21T15:47:16Z</updated>
<author>
<name>Georg Brandl</name>
<email>georg@python.org</email>
</author>
<published>2007-04-21T15:47:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a18af4e7a2091d11478754eb66ae387a85535763'/>
<id>urn:sha1:a18af4e7a2091d11478754eb66ae387a85535763</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix test_os from breakage due to dict views.</title>
<updated>2007-02-21T21:57:55Z</updated>
<author>
<name>Brett Cannon</name>
<email>bcannon@gmail.com</email>
</author>
<published>2007-02-21T21:57:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=67582d2beee2fd67f18ec7cc9797c3b76342e510'/>
<id>urn:sha1:67582d2beee2fd67f18ec7cc9797c3b76342e510</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix the damage to UserDict and its tests.</title>
<updated>2007-02-15T03:49:08Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-02-15T03:49:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d81206d1526f869645bca83193da5ddfefaf4936'/>
<id>urn:sha1:d81206d1526f869645bca83193da5ddfefaf4936</id>
<content type='text'>
Clearly this is not the right way to fix this; UserDict and MixinDict
ought to be redesigned with the new dict API in mind.  But I'm not
claiming to be in charge of library redesign, I only want zero failing
tests.
</content>
</entry>
<entry>
<title>Nailed test_weakref.py.  Pfew, messy!</title>
<updated>2007-02-11T22:59:48Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-02-11T22:59:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=07f2436fa864c5a09150c8f0b250640f267f01bf'/>
<id>urn:sha1:07f2436fa864c5a09150c8f0b250640f267f01bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>- PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;</title>
<updated>2007-02-11T06:12:03Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-02-11T06:12:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cc2b0161257495f859200bce0aea3ed7e646feb3'/>
<id>urn:sha1:cc2b0161257495f859200bce0aea3ed7e646feb3</id>
<content type='text'>
  and .keys(), .items(), .values() return dict views.

The dict views aren't fully functional yet; in particular, they can't
be compared to sets yet.  but they are useful as "iterator wells".

There are still 27 failing unit tests; I expect that many of these
have fairly trivial fixes, but there are so many, I could use help.
</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>Change the way __hash__ is inherited; when __eq__ or __cmp__ is overridden</title>
<updated>2006-08-21T23:36:26Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-08-21T23:36:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=389381564cfa936c8e50bc51dc53b55cba857652'/>
<id>urn:sha1:389381564cfa936c8e50bc51dc53b55cba857652</id>
<content type='text'>
but __hash__ is not, set __hash__ explicitly to None (and tp_hash to NULL).
All unit tests pass now!
</content>
</entry>
<entry>
<title>Get rid of dict.has_key(). Boy this has a lot of repercussions!</title>
<updated>2006-08-18T22:13:04Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2006-08-18T22:13:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e2b70bcf7401477936fba99a8bf4a1f759ecc8a3'/>
<id>urn:sha1:e2b70bcf7401477936fba99a8bf4a1f759ecc8a3</id>
<content type='text'>
Not all code has been fixed yet; this is just a checkpoint...
The C API still has PyDict_HasKey() and _HasKeyString(); not sure
if I want to change those just yet.
</content>
</entry>
<entry>
<title>Rename class attribute containing the class to be tested, so the name is the</title>
<updated>2004-06-02T18:42:25Z</updated>
<author>
<name>Walter Dörwald</name>
<email>walter@livinglogic.de</email>
</author>
<published>2004-06-02T18:42:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=118f931d07de3987958eee51e97b3323c190dbfd'/>
<id>urn:sha1:118f931d07de3987958eee51e97b3323c190dbfd</id>
<content type='text'>
same as for the string and sequence tests.
</content>
</entry>
</feed>
