Browse Source

Nonlocal

pull/10/head
Jure Šorn 6 years ago
parent
commit
b3fc373f18
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -578,7 +578,7 @@ from functools import partial
``` ```
### Nonlocal ### Nonlocal
**If variable is assigned to anywhere in the scope, it is regarded as local variable, unless it is declared as global or nonlocal.** **If variable is assigned to anywhere in the scope, it is regarded as a local variable, unless it is declared as global or nonlocal.**
```python ```python
def get_counter(): def get_counter():

|||||||
100:0
Loading…
Cancel
Save