[Python-3000-checkins] r53781 - in python/branches/p3yk: BROKEN Lib/UserDict.py Lib/test/test_richcmp.py
guido.van.rossum
python-3000-checkins at python.org
Thu Feb 15 05:01:06 CET 2007
Author: guido.van.rossum
Date: Thu Feb 15 05:01:01 2007
New Revision: 53781
Modified:
python/branches/p3yk/BROKEN
python/branches/p3yk/Lib/UserDict.py
python/branches/p3yk/Lib/test/test_richcmp.py
Log:
Some more test now pass.
Modified: python/branches/p3yk/BROKEN
==============================================================================
--- python/branches/p3yk/BROKEN (original)
+++ python/branches/p3yk/BROKEN Thu Feb 15 05:01:01 2007
@@ -1,4 +1,3 @@
test_bsddb test_bsddb3 test_compile test_dumbdbm
test_importhooks test_iter test_iterlen test_minidom test_mutants
- test_os test_pickletools test_plistlib test_richcmp test_shelve
- test_unittest test_userdict
+ test_os test_plistlib
Modified: python/branches/p3yk/Lib/UserDict.py
==============================================================================
--- python/branches/p3yk/Lib/UserDict.py (original)
+++ python/branches/p3yk/Lib/UserDict.py Thu Feb 15 05:01:01 2007
@@ -117,7 +117,7 @@
def items(self):
return list(self.iteritems())
def clear(self):
- for key in self.keys():
+ for key in list(self.iterkeys()):
del self[key]
def setdefault(self, key, default=None):
try:
Modified: python/branches/p3yk/Lib/test/test_richcmp.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_richcmp.py (original)
+++ python/branches/p3yk/Lib/test/test_richcmp.py Thu Feb 15 05:01:01 2007
@@ -265,7 +265,7 @@
imag1a = {}
for i in range(50):
imag1a[random.randrange(100)*1j] = random.randrange(100)*1j
- items = imag1a.items()
+ items = list(imag1a.items())
random.shuffle(items)
imag1b = {}
for k, v in items:
More information about the Python-3000-checkins
mailing list