John Max Skaller wrote: > Do you have an example of real application code where searching a class > in which a function is defined will break code? I haven't been following this thread closely, but are we talking about a scoping model where a class can override any built-in function or method by defining a method (or a class attribute) with the same name? like in urllib.py, for example: class URLopener: ... def open(self, fullurl, data=None): fullurl = unwrap(fullurl) if self.tempcache and self.tempcache.has_key(fullurl): filename, headers = self.tempcache[fullurl] fp = open(filename, 'rb') return addinfourl(fp, headers, fullurl) ... this won't fly. </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