> class Damson:
>     def __str__(self):
>         return 'damson'
> 
>     def dry(self):
>         self = Prune()

You'll neeed to return it for the outside world to use it...
So try

     def dry(self): return Prune()

> class Prune:
>     def __str__(self):
>         return 'prune'
> 
> weapon = Damson()
> weapon.dry()
> print weapon

Should work as expected...

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to