Backward chaining for __init__?

Courageous jkraska1 at san.rr.com
Tue May 2 23:48:45 EDT 2000


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


Thank you. Somehow in the various pieces of documentation
I have, it wasn't at all obvious to me that you could treat
the type as an object. This makes sense now in retrospect.

I'm curious, however, as to the philosophical justification
for leaving backward-chaining ctors out of Python? While
it's just synactic sugar, some kinds of sugar really taste
good.

What would be really nice is some use controlled way of
making backward chaining methods in general, as opposed
the the limited __init__ case.



C/



More information about the Python-list mailing list