passing by refference
Daan Hoogland
hoogland at astron.nl
Wed May 14 05:29:47 EDT 2003
Thank you all for your mutual flaming, in between the lines there where many
satisfying answers to my question. I did change my subsribtion to digest though.
On Tue, 13 May 2003, you wrote:
> is passing by reffence possible in python?
>
> I'd like the following code to print
> 1
> instead of
> 2
>
> <file name="D.py">
> def spam(**ni):
> ni["egg"] = 1;
>
> bacon = 2
> spam(egg = bacon)
> print bacon
> </file>
>
> the actual construct is going to return several newly created object, to give a
> reason why.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list