"Learning Python" 2nd ed. p479 error?

AbrahamLincolnIllinois at yahoo.com AbrahamLincolnIllinois at yahoo.com
Fri May 26 08:32:44 EDT 2006


Hello all.

On page 479, the 2nd edition of the "Learning Python" book, this code
appears

    class Derived(Base):
        def __init__(self, arg, *args, **kw):
            self.__init__(self, *args, **kw)

Surely self.__init__ should be

            Base.__init__

Everything else in the book has been crystal clear.  Up to page 479!
It doesn't appear in the errata.  What am I misunderstanding?


                                      Regards,

                                      Abraham




More information about the Python-list mailing list