Pass by reference

alex goretoy aleksandr.goretoy at gmail.com
Fri Jan 2 21:07:35 EST 2009


You are correct, terminology is a must. In order to stay on the same page.
And yes, it;s not technically by ref. but it works for me at the moment.

I was doing this in my code:
l={"user":"asdf","pass":"goog"}
d= {
    "login_url":"http://example.com/login",
    "user":l["user"],
    "pass":l["pass"]

}
and it wouldn't work. So I had to do some research on how to make it work.
passing a mutable object resolved my problem. Thank you for correcting me.
-A

ps.I have this habit of pressing reply instead of reply to all. Working on
fixing that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090103/c27840b4/attachment-0001.html>


More information about the Python-list mailing list