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')
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to