class-call a function in a function -problem

Steven Bethard steven.bethard at gmail.com
Tue Aug 16 13:50:43 EDT 2005


Larry Bates wrote:
>     def __init__(self, x=1, y=2)
[snip]
>         self.x=x
>         self.y=y
>         self.a=0
>         return
> 
>     def l(self):
[snip]
>         self.a=self.x+self.y
>         print "In ludzik.l a=',self.a
> 	  return
> 
>     def ala(self):
[snip]
>         self.l()
>         return

Any reason for putting the return statements at the end of each function?

STeVe



More information about the Python-list mailing list