Backward chaining for __init__?

David Goodger dgoodger at bigfoot.com
Tue May 2 22:45:52 EDT 2000


on 2000-05-02 22:15, Courageous (jkraska1 at san.rr.com) wrote:
> How does one go about implementing backward chaining
> for constructor's in Python?

class Parent:
  def __init__(self):
    # do whatever
    pass

class Derived(Parent):
  def __init__(self):
    Parent.__init__(self)
    # do whatever else

-- 
David Goodger    dgoodger at bigfoot.com    Open-source projects:
 - The Go Tools Project: http://gotools.sourceforge.net
 (more to come!)




More information about the Python-list mailing list