function parameters again
Fredrik Lundh
fredrik at effbot.org
Mon Jan 29 19:04:58 EST 2001
Hwanjo Yu wrote:
> The book says the parameters are passed by reference
in Python, everything is a reference.
> but the following example seems not. How can I pass it
> by reference in the following example ?
it is passed by reference. but that doesn't help you here --
integer objects cannot be modified, and assignment doesn't
do what you think it does.
maybe this will help you understand:
http://effbot.org/guides/python-objects.htm
Cheers /F
More information about the Python-list
mailing list