Function mistaken for a method

Maric Michaud maric at aristote.info
Thu Jun 1 09:58:01 EDT 2006


Le Jeudi 01 Juin 2006 15:36, Christophe a écrit :
>        self.x = self.__class__.f(0)
nope, this will result in a TypeError "unbound method must be called with 
instance as first argument"
-- 
_____________

Maric Michaud
_____________

Aristote - www.aristote.info
3 place des tapis
69004 Lyon
Tel: +33 426 880 097



More information about the Python-list mailing list