Passing address of variables...

Adonis Vargas deltapigz at telocity.com
Sat Sep 15 15:22:45 EDT 2001


how am i able to pass the address of a variable to another variable have it
affected by
change(s)?

i.e. like in C/C++ you have:

int something(int &blah)
{
    blah++;
}

int x=0;
something(x)
print x // returns 1

just a rough idea; can this be done in Python?

any help would greatly be appreciated.

Adonis





More information about the Python-list mailing list