function calls ...

Axel Bock news-and-lists at
Tue Aug 20 20:32:32 CEST 2002


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

With lists it works like this:
but with dictionaries ... ?

can anyone help please?

Thanks and greetings, 


More information about the Python-list mailing list