[Python-3000-checkins] r59006 - python/branches/py3k/Lib/collections.py
guido.van.rossum
python-3000-checkins at python.org
Fri Nov 16 01:48:13 CET 2007
Author: guido.van.rossum
Date: Fri Nov 16 01:48:13 2007
New Revision: 59006
Modified:
python/branches/py3k/Lib/collections.py
Log:
Oops, forgot to test this after the merge.
Modified: python/branches/py3k/Lib/collections.py
==============================================================================
--- python/branches/py3k/Lib/collections.py (original)
+++ python/branches/py3k/Lib/collections.py Fri Nov 16 01:48:13 2007
@@ -70,7 +70,7 @@
return dict(zip(%(field_names)r, self))
def __replace__(self, **kwds):
'Return a new %(typename)s object replacing specified fields with new values'
- return %(typename)s(**dict(zip(%(field_names)r, self) + kwds.items())) \n''' % locals()
+ return %(typename)s(**dict(list(zip(%(field_names)r, self)) + list(kwds.items()))) \n''' % locals()
for i, name in enumerate(field_names):
template += ' %s = property(itemgetter(%d))\n' % (name, i)
if verbose:
@@ -105,7 +105,7 @@
# test and demonstrate ability to override methods
Point.__repr__ = lambda self: 'Point(%.3f, %.3f)' % self
- print p
+ print(p)
import doctest
TestResults = namedtuple('TestResults', 'failed attempted')
More information about the Python-3000-checkins
mailing list