3 ms·
Python has closures but has issues when changing variables within them. This leads most people to agree that Python's implementation of closures is insufficien
by khill 18y ago
Python has closures but has issues when changing variables within them. This leads most people to agree that Python's implementation of closures is insufficient.
See the following link for an example and more details:
http://mail.python.org/pipermail/python-list/2004-July/270951.html http://mail.python.org/pipermail/python-list/2004-July/27095...
Instead of list boxing, you can also use a function attribute to handle changing the variable in the correct scope.