>>>>> "DA" == David Ascher <DavidA@ActiveState.com> writes: DA> But most importantly, IMO: DA> class SubClass(Class): DA> def __init__(self, a, *args, **kw): DA> self.a = a DA> Class.__init__(self, *args, **kw) DA> Much neater. This version of method overloading was what I liked most about Greg's patch. Note that I also prefer: class SubClass(Class): super_init = Class.__init__ def __init__(self, a, *args, **kw): self.a = a self.super_init(*args, **kw) I've been happy to have all the overridden methods explicitly labelled at the top of a class lately. It is much easier to change the class hierarchy later. Jeremy
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