function calls ...

Axel Bock news-and-lists at the-me.de
Tue Aug 20 14:32:32 EDT 2002


Hi, 

as you all might know :-) function calls are always done "by reference",
like the C programmers would say.

Now I have a special problem: I have a dictionary, and I have a function.
And I want to call the function with the dictionary as parameter, but I
want a *COPY* of the dictionary be transferred, cause the function makes
changes to this one which I don't like to keep but are nonetheless
neccessary.

With lists it works like this:
	callme(list[:])
but with dictionaries ... ?

can anyone help please?


Thanks and greetings, 

		axel.



More information about the Python-list mailing list