mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
#2863: add gen.__name__ and add this name to generator repr().
This commit is contained in:
parent
b346513044
commit
c91210c06b
4 changed files with 49 additions and 3 deletions
|
|
@ -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': <generator object at ...>}
|
||||
{'a': <<genexp> generator object at ...>}
|
||||
|
||||
Verify early binding for the outermost for-expression
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue