#2863: add gen.__name__ and add this name to generator repr().

This commit is contained in:
Georg Brandl 2008-05-15 15:08:32 +00:00
parent b346513044
commit c91210c06b
4 changed files with 49 additions and 3 deletions

View file

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