Browse Source

Closure

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

2
README.md

@ -554,7 +554,7 @@ def get_multiplier(a):
``` ```
* **If multiple nested functions within enclosing function reference the same value, that value gets shared.** * **If multiple nested functions within enclosing function reference the same value, that value gets shared.**
* **To dynamicaly acces functions first free variable use `'<function>.__closure__[0].cell_contents`'.** * **To dynamicaly acces functions first free variable use `'<function>.__closure__[0].cell_contents'`.**
#### Or: #### Or:
```python ```python

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