summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-16 09:34:48 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-16 09:34:48 (GMT)
commit5ffad6646eacf305afaf2ba6b2a738c16257ee0e (patch)
tree0e639e8ffb5bf1d73cfac91c0a8a536d3aa4424c /Lib
parenta8eaf8faf30bd5c4ce84ef44376b862237a606c3 (diff)
downloadcpython-5ffad6646eacf305afaf2ba6b2a738c16257ee0e.zip
cpython-5ffad6646eacf305afaf2ba6b2a738c16257ee0e.tar.gz
cpython-5ffad6646eacf305afaf2ba6b2a738c16257ee0e.tar.bz2
Make generator repr consistent with function and code object repr.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_generators.py2
-rw-r--r--Lib/test/test_genexps.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index 7be0a90..3702abc 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -927,7 +927,7 @@ Test the __name__ attribute and the repr()
>>> g.__name__
'f'
>>> repr(g) # doctest: +ELLIPSIS
-'<f generator object at ...>'
+'<generator object f at ...>'
"""
# conjoin is a simple backtracking generator, named in honor of Icon's
diff --git a/Lib/test/test_genexps.py b/Lib/test/test_genexps.py
index ab9f85d..a86f12f 100644
--- a/Lib/test/test_genexps.py
+++ b/Lib/test/test_genexps.py
@@ -92,7 +92,7 @@ Verify that parenthesis are required when used as a keyword argument value
Verify that parenthesis are required when used as a keyword argument value
>>> dict(a = (i for i in xrange(10))) #doctest: +ELLIPSIS
- {'a': <<genexpr> generator object at ...>}
+ {'a': <generator object <genexpr> at ...>}
Verify early binding for the outermost for-expression