call by reference howto????

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Wed Feb 27 20:24:48 EST 2008


On Thu, 28 Feb 2008 02:02:19 +0200, Tamer Higazi wrote:

> Hi!
> Can somebody of you make me a sample how to define a function based on
> "call by reference" ???

Python doesn't do call by reference. Nor does it do call by value. Please 
pay no attention to anyone who says it does.

Instead, read this:

http://effbot.org/zone/call-by-object.htm

and possibly this as well:

http://effbot.org/zone/python-objects.htm

After you've read that, if you still have questions, please ask.



-- 
Steven



More information about the Python-list mailing list