scope of function parameters (take two)

Wolfgang Rohdewald wolfgang at rohdewald.de
Tue May 31 04:37:50 EDT 2011


On Dienstag 31 Mai 2011, Henry Olders wrote:
> You're partially right - what I want is a function that is
> free of side effects back through the parameters passed in
> the function call.

I don't know any object oriented language where it is not
possible to change objects passed in as parameters. It
is up to the passed object (a list in your case) to allow
or disallow manipulations no matter how they are invocated,
and the object is the same in the calling code and in the
called function.

-- 
Wolfgang



More information about the Python-list mailing list