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


Groups > comp.lang.python > #6720

Re: scope of function parameters (take two)

From Wolfgang Rohdewald <wolfgang@rohdewald.de>
Subject Re: scope of function parameters (take two)
Date 2011-05-31 10:37 +0200
References <F8395F78-615E-4FBD-B6FC-1D6173EAEA45@mcgill.ca> <201105310713.24842.wolfgang@rohdewald.de> <D6671B7A-C8B1-4235-A50F-31D9F2AD7DD7@mcgill.ca>
Newsgroups comp.lang.python
Message-ID <mailman.2312.1306831063.9059.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

Re: scope of function parameters (take two) Wolfgang Rohdewald <wolfgang@rohdewald.de> - 2011-05-31 10:37 +0200

csiph-web