Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6753

Re: scope of function parameters (take two)

Date 2011-05-31 13:01 -0700
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: scope of function parameters (take two)
References <F8395F78-615E-4FBD-B6FC-1D6173EAEA45@mcgill.ca> <F4EAD1ED-563D-4D6E-A50C-68308A9F26B7@mcgill.ca> <BANLkTin5exEpDkE3on3BAaWwHOjpg_vC8g@mail.gmail.com> <6699AB10-988A-49AD-B7C1-6BAA2CC3D008@mcgill.ca>
Newsgroups comp.lang.python
Message-ID <mailman.2332.1306871338.9059.python-list@python.org> (permalink)

Show all headers | View raw


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~

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: scope of function parameters (take two) Ethan Furman <ethan@stoneleaf.us> - 2011-05-31 13:01 -0700

csiph-web