Any way to do this in Python?

Date : Sat, 07 Jan 2006 03:20:21 +0000
To : xsi(at)Softimage.COM
From : "brad" <brad(at)cg-soup.com>
Subject : Any way to do this in Python?
I'm looking to do pointer-style variable assignments in Python. All the docs on Python say that pointers aren't necessary, since all variables in Python are object pointers. If this is the case, how would I get the following kind of behavior to work?

a = None
b = None
c = None
myList = [&a, &b, &c]    #This doesn't work in Python, but it's how you'd do it in C

#I need the value assigned to the variable address and not the list object!
myList[0] = 1

Application.LogMessage(a) #Need this to return 1


Thanks,
Brad
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.