tutorial example

Colin J. Williams cjw at sympatico.ca
Sat Nov 12 16:21:46 EST 2005


Max Erickson wrote:
> Not in python.
> 
> For example, what would you call the following?
> 
> def rsum(n, m):
>     print n+m
>     return n+m
> 
I would call it a python function with a side-effect.

Colin W.
> 
> In python a method is callable attached to an object. A function is a 
> callable object constructed with a def statement.
> 
> max
> 



More information about the Python-list mailing list