indirect references

Sean 'Shaleh' Perry shaleh at valinux.com
Mon Jun 5 19:13:30 EDT 2000


> I don't think I am sticking my foot in my mouth: Strings are immutable in
> Python and passed/assigned by value (not by reference, which is what you are
> asking for here). Arrays and dictionaries are passed by reference. Maybe you
> could setup you data to use an array, pass a reference to it and change its
> value, like this:

I knew that a string itself was immutable, I guess I was looking for a
reference object of some kind (a la C pointers, C++/perl references).




More information about the Python-list mailing list