On 20 Feb 2002 at 8:30, Kevin Jacobs wrote: > Attributes currently have a flat namespace, Instance attributes do, but that's a tautology. > and the > construct that I feel is most natural would maintain > that characteristic. e.g.: > > class Base: > def __init__(self): > self.foo = 1 > > class Derived(Base): > def __init__(self): > Base.__init__(self) > self.foo = 2 # this is the same foo as in > Base But these aren't: class Base foo = 1 class Derived(Base): foo = 2 -- Gordon http://www.mcmillan-inc.com/
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