Tim Peters <tim.one@comcast.net> writes: > BTW2, I see plenty of UnboundLocalErrors in my own code, and some of > those have occurred when the same name is also in use as a global. > It's always been a logic error due to forgetting to initialize a > local, and usually due to "moving code up" in an editor. It sure > wouldn't be doing me any favor to let such code silently pick up > whatever crap happened to be bound to the same-named global; > UnboundLocalError is a fine bug-catcher. Wouldn't it be nice if these were flagged at compile time! More work for Jeremy <wink>. Cheers, M. -- Strangely enough I saw just such a beast at the grocery store last night. Starbucks sells Javachip. (It's ice cream, but that shouldn't be an obstacle for the Java marketing people.) -- Jeremy Hylton, 29 Apr 1997
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