scope of function parameters (take two)

Ethan Furman ethan at stoneleaf.us
Tue May 31 16:01:48 EDT 2011


Henry Olders wrote:
> Clearly, making a copy within the function eliminates the possibility of 
> the side effects caused by passing in mutable objects. Would having the 
> compiler/interpreter do this automatically make python so much 
> different?

It would be a different language.

~Ethan~



More information about the Python-list mailing list