We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b11ea9 commit 658af1bCopy full SHA for 658af1b
README.md
@@ -538,7 +538,7 @@ Closure
538
-------
539
**We have a closure in Python when:**
540
* **A nested function references a value of its enclosing function, and then**
541
-* **the enclosing function returns the nested function.
+* **the enclosing function returns the nested function.**
542
543
```python
544
def get_multiplier(a):
@@ -554,6 +554,7 @@ def get_multiplier(a):
554
```
555
556
* **If multiple nested functions within enclosing function reference the same value, that value gets shared.**
557
+* **To dynamicaly acces functions first free variable use `'<function>.__closure__[0].cell_contents`'.**
558
559
#### Or:
560
0 commit comments