Commit Graph

33779 Commits

Author SHA1 Message Date
Brett Cannon
b38e2bcfd4 Fix plistlib to work with dict views. 2007-02-21 21:18:18 +00:00
Guido van Rossum
75d26ccd7a Some more test now pass. 2007-02-15 04:01:01 +00:00
Guido van Rossum
d81206d152 Fix the damage to UserDict and its tests.
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.
2007-02-15 03:49:08 +00:00
Guido van Rossum
e34cdd1bc1 Fix for test_dict.py, thanks to Eduardo O Padoan. 2007-02-14 17:49:04 +00:00
Guido van Rossum
d4588c18f2 Get rid of some old TO TO items. 2007-02-13 19:55:23 +00:00
Guido van Rossum
4726942ceb List of broken tests at this time. If you fix a test, please update this file. 2007-02-13 05:46:39 +00:00
Guido van Rossum
d9214d1f2c Make dict.keys() and dict.items() comparable to sets, using == and !=.
(PEP 3106 requires subset comparisons too, those will come later if someone
really wants them. :-)
2007-02-12 02:23:40 +00:00
Guido van Rossum
e19aad4c7b Fix unittest. 2007-02-12 00:23:56 +00:00
Guido van Rossum
dde4c2ca56 Fix another unit test. 2007-02-12 00:22:55 +00:00
Guido van Rossum
8b8a543a7b Make test_logging pass. 2007-02-12 00:07:01 +00:00
Georg Brandl
c2d9d7f489 Checkin the regenerated Python-ast.c and fix test_optparse. 2007-02-11 23:06:17 +00:00
Guido van Rossum
07f2436fa8 Nailed test_weakref.py. Pfew, messy! 2007-02-11 22:59:48 +00:00
Guido van Rossum
9afbb4e364 Two more trivial fixes. 2007-02-11 18:54:18 +00:00
Guido van Rossum
cd70eee244 Another fix. Partly reverted the tweaks done by the previous fix. 2007-02-11 18:53:00 +00:00
Guido van Rossum
091153d43b Make test_sax pass. 2007-02-11 18:44:55 +00:00
Guido van Rossum
87b639505b With the help of the improved fixer, test_with.py is now fixed. 2007-02-11 07:05:21 +00:00
Guido van Rossum
cc2b016125 - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;
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.
2007-02-11 06:12:03 +00:00
Guido van Rossum
4e66dfcdc4 Random change to make this work unchanged when dict.keys() returns a dict view. 2007-02-10 22:53:17 +00:00
Guido van Rossum
3ac6741f79 Implement __contains__ for dict_keys and dict_items.
(Not for dict_values, where it can't be done faster than
the default implementation which just iterates the elements.)
2007-02-10 18:55:06 +00:00
Guido van Rossum
83825acd1b Endow dict views with a proper length method. 2007-02-10 04:54:19 +00:00
Guido van Rossum
b90c84889e Very preliminary work on dict views. 2007-02-10 01:11:45 +00:00
Guido van Rossum
8b545369ea News about softspace. 2007-02-09 23:52:14 +00:00
Guido van Rossum
e0192e576f Fix the remaining doctest failures.
One was a modified line that was echoed in an exception;
the other two were softspace problems, fixed clumsily but effectively.
2007-02-09 23:39:59 +00:00
Guido van Rossum
79f5543685 Ignore *.py[co]. 2007-02-09 23:38:28 +00:00
Guido van Rossum
96bf7e8a37 Fix test_frozen. 2007-02-09 23:27:01 +00:00