Ralf W. Grosse-Kunstleve wrote: > > what dictionary lookup ? > > IIUC, "self" is first looked up in the local dictionary. no, self is a local variable. self.x means that "x" is looked up in the in- stance dictionary, though. > Please try the code below to see the performance impact. oh, please. do you seriously think that if you don't have to type "self" yourself, Python will suddenly be able to turn all instance variables into local function variables without any performance overhead ? </F>
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