2011/2/26 Greg Ewing <greg.ewing at canterbury.ac.nz>: > From: Grigory Javadyan >> ... def f(): >> ... a = 42 >> ... def g(): >> ... nonlocal a >> ... del a >> ... >> SyntaxError: can not delete variable 'a' referenced in nested scope > > Is there a rational for this? It seems inconsistent -- if you can > assign to names in outer scopes, you should be able to del them > as well. Notice that it's now been changed... -- Regards, Benjamin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4