mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Minor formatting cleanup.
This commit is contained in:
parent
3258e72c82
commit
84f107dd15
1 changed files with 6 additions and 5 deletions
|
@ -75,11 +75,12 @@ Test running gen when defining function is out of scope
|
|||
[(0, 0), (0, 1), (1, 0), (1, 1), (2, 0), (2, 1)]
|
||||
|
||||
Verify that parenthesis are required in a statement
|
||||
>>> def f(n):
|
||||
... return i*i for i in xrange(n)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: invalid syntax
|
||||
|
||||
>>> def f(n):
|
||||
... return i*i for i in xrange(n)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: invalid syntax
|
||||
|
||||
Verify early binding for the outermost for-expression
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue