summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dictviews.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #9212: Added the missing isdisjoint method to the dict_keys andDaniel Stutzbach2010-09-021-0/+35
| | | | | dict_items views. The method is required by the collections.Set ABC, which the views register as supporting.
* Forward port unit tests for set operation and repr.Alexandre Vassalotti2010-05-041-0/+76
| | | | Patch by Alexander Belopolsky.
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-11/+11
| | | | A patch from Dave Malcolm.
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-11/+11
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-2/+2
|
* Make dict.keys() and dict.items() comparable to sets, using == and !=.Guido van Rossum2007-02-121-2/+28
| | | | | (PEP 3106 requires subset comparisons too, those will come later if someone really wants them. :-)
* - PEP 3106: dict.iterkeys(), .iteritems(), .itervalues() are now gone;Guido van Rossum2007-02-111-6/+6
| | | | | | | | | | 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.
* Implement __contains__ for dict_keys and dict_items.Guido van Rossum2007-02-101-0/+22
| | | | | (Not for dict_values, where it can't be done faster than the default implementation which just iterates the elements.)
* Endow dict views with a proper length method.Guido van Rossum2007-02-101-0/+3
|
* Very preliminary work on dict views.Guido van Rossum2007-02-101-0/+25