Browse Source

Nonlocal

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

2
README.md

@ -575,7 +575,7 @@ from functools import partial
``` ```
### Nonlocal ### 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.**
**If variable is being 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():

Loading…
Cancel
Save