Benjamin Peterson
611d901289
add recursive repr test
2013-05-19 19:39:38 -07:00
Daniel Stutzbach
045b3ba184
Issue #9212 : Added the missing isdisjoint method to the dict_keys and
...
dict_items views. The method is required by the collections.Set ABC,
which the views register as supporting.
2010-09-02 15:06:06 +00:00
Alexandre Vassalotti
a714257a66
Forward port unit tests for set operation and repr.
...
Patch by Alexander Belopolsky.
2010-05-04 03:41:49 +00:00
Benjamin Peterson
577473fe68
use assert[Not]In where appropriate
...
A patch from Dave Malcolm.
2010-01-19 00:09:57 +00:00
Benjamin Peterson
c9c0f201fe
convert old fail* assertions to assert*
2009-06-30 23:06:06 +00:00
Benjamin Peterson
ee8712cda4
#2621 rename test.test_support to test.support
2008-05-20 21:35:26 +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
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
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