Make generator repr consistent with function and code object repr.

This commit is contained in:
Georg Brandl 2008-05-16 09:34:48 +00:00
parent a8eaf8faf3
commit 5ffad6646e
3 changed files with 3 additions and 3 deletions

View file

@ -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