Commit e5d64c78 authored by Jeremy Hylton's avatar Jeremy Hylton

Add news about nonlocal statement

parent 85bd2278
......@@ -62,6 +62,21 @@ Core and Builtins
- Added function annotations per PEP 3107.
- Added nonlocal declaration from PEP 3104
>>> def f(x):
... def inc():
... nonlocal x
... x += 1
... return x
... return inc
...
>>> inc = f(0)
>>> inc()
1
>>> inc()
2
- Moved intern() to sys.intern().
- exec is now a function.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment