Alessandro Cucci added the comment:

quoting the docs:

The statement [nonlocal] allows encapsulated code to rebind variables outside 
of the local scope BESIDES the global (module) scope.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25973>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to