Vladimir

31%
Flag icon
the nonlocal keyword was introduced in Python 3. It lets you declare a variable as a free variable even when it is assigned within the function. If a new value is assigned to a nonlocal variable, the binding stored in the closure is changed.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview