Fredrik Lundh said unto the world upon 2005-10-09 17:49:
> Brian van den Broek wrote:
> 
> 
>>But the academic issue "How/Can it be done?" still itches.
> 
> 
> class __TwoUnderBase(object):
>       def __init__(self):
>           if self.__class__.__name__ == "__TwoUnderBase":
>               print "From __TwoUnderBase"
>           else:
>               print "From subclass",
> 
> </F> 

Thanks Fredrik.

Brian vdB

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to