Pass by reference
aleksandr.goretoy at gmail.com
Sat Jan 3 03:05:49 CET 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:
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.
On Thu, Jan 1, 2009 at 6:22 PM, Terry Reedy <tjreedy at udel.edu> wrote:
> alex goretoy wrote:
>> I recently conquered this pass by ref thing. This is how I did it.
> What you did was to pass a mutable object and mutate it. Absolutely
> standard practice in Python. I am glad you learned it, but also learning
> and using the standard terminology will also help. Hope you enjoy Python
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list