[Tutor] Possible to change values of scalar function parameters?

python at bdurham.com python at bdurham.com
Tue Feb 17 18:41:29 CET 2009


Kent,

> No, not a simple way at least. Possibly you can do it with hackery
involving stack frames but I wouldn't recommend that. Either pass the
values in some kind of container (list, dict, class instance) or
return the new value and assign it in the caller.

That's what I thought. Thank you!

Malcolm


More information about the Tutor mailing list