3 ms·
I somehow didn't know about nonlocal. With that, isn't python 100% comparable with JavaScript?
by emehrkay 13y ago
I somehow didn't know about nonlocal. With that, isn't python 100% comparable with JavaScript?
- abecedarius 13y agohttp://ballingt.com/2014/03/17/python-javascript.html http://ballingt.com/2014/03/17/python-javascript.html makes an extended comparison.
- Grue3 13y agoPython didn't even have a nonlocal statement until 2.7. Making closures was (and still is, since I have to work with 2.6) a total nightmare.
- random_coder 13y agononlocal is only in python 3.
- Grue3 13y agoOh, that's even worse.