method in the definiton of a methond

Zunbeltz Izaola zunbeltz at wm.lc.ehu.es.XXX
Wed Oct 29 06:50:18 EST 2003


Gonçalo Rodrigues <op73418 at mail.telepac.pt> writes:

> The traceback tells it all: self is not defined. self is *local* to
> the Move method itself. You can't access it from the outside which is
> what you are trying to do, by putting it in the args list for Move.
> 
> The following should work
> 
> def Move(self,handle = None):
>     if handle is None:
>         handle = self.GetNewHandler()
>     etc,...
> 
> With my best regards,
> G. Rodrigues

Thanks for the answer. I'm understanding python better every time i
read c.l.p :-)

Zunbeltz
-- 
Remove XXX from email: zunbeltz at wm.lc.ehu.esXXX




More information about the Python-list mailing list