how to dispatch objects depending on their class

Curzio Basso curzio.basso at unibas.ch
Wed Aug 11 04:04:01 EDT 2004


Curzio Basso wrote:

> class B(object):
>   def __init__(self):
>     A.__init__(self)

typo. this should be:

class B(A):
   def __init__(self):
     A.__init__(self)



More information about the Python-list mailing list