mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Make generator repr consistent with function and code object repr.
This commit is contained in:
parent
a8eaf8faf3
commit
5ffad6646e
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue