@@ -380,6 +380,12 @@ simplifies understanding of the ``nonlocal`` statement. Separating |
|
|
380 |
380 |
the shorthand form into a declaration and an assignment is sufficient |
381 |
381 |
to understand what it means and whether it is valid. |
382 |
382 |
|
|
383 |
+.. note:: |
|
384 |
+ |
|
385 |
+ The shorthand syntax was not added in the original implementation |
|
386 |
+ of the PEP. Later discussions [29]_ [30]_ concluded this syntax |
|
387 |
+ should not be implemented. |
|
388 |
+ |
383 |
389 |
|
384 |
390 |
Backward Compatibility |
385 |
391 |
====================== |
@@ -517,6 +523,12 @@ References |
|
|
517 |
523 |
.. [28] Ruby 2.0 block local variable |
518 |
524 |
http://redhanded.hobix.com/inspect/ruby20BlockLocalVariable.html |
519 |
525 |
|
|
526 |
+.. [29] Issue 4199: combining assignment with global & nonlocal (Guido van Rossum) |
|
527 |
+ https://mail.python.org/pipermail/python-dev/2013-June/127142.html |
|
528 |
+ |
|
529 |
+.. [30] Whatever happened to 'nonlocal x = y'? (Guido van Rossum) |
|
530 |
+ https://mail.python.org/pipermail/python-dev/2018-January/151627.html |
|
531 |
+ |
520 |
532 |
|
521 |
533 |
Acknowledgements |
522 |
534 |
================ |