mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +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)]
|
[(0, 0), (0, 1), (1, 0), (1, 1), (2, 0), (2, 1)]
|
||||||
|
|
||||||
Verify that parenthesis are required in a statement
|
Verify that parenthesis are required in a statement
|
||||||
>>> def f(n):
|
|
||||||
... return i*i for i in xrange(n)
|
>>> def f(n):
|
||||||
Traceback (most recent call last):
|
... return i*i for i in xrange(n)
|
||||||
|
Traceback (most recent call last):
|
||||||
...
|
...
|
||||||
SyntaxError: invalid syntax
|
SyntaxError: invalid syntax
|
||||||
|
|
||||||
Verify early binding for the outermost for-expression
|
Verify early binding for the outermost for-expression
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue