26 Apr
2012
26 Apr
'12
8:30 p.m.
On Wed, Apr 25, 2012 at 11:31 AM, Ethan Furman
Matt Joiner wrote:
If not use_simple_api: class C:
More like:
class C: def basic_method(self): pass if not use_simple_gui: def advanced_method(self, this, that): pass
He may have been thinking of a replacement idiom class C: ... if system_has_propertyX(): class C(C): # Extend the Base class, but keep the name... -jJ