D
dustin.getz
from Numeric import zeros
#array([10,0,0]) #desired behavior
I want x to be a C++-esque reference to p[0] for convenience in a
vector3 class. i dont want accessor methods. i know python can do
this, but it's been a long time since I used it and am unsuccessful in
my googling and docreading. a little help please?
array([0,0,0]) #actual behaviorp=zeros(3)
p array([0,0,0])
p[0] 0
x=p[0]
x=10
p
#array([10,0,0]) #desired behavior
I want x to be a C++-esque reference to p[0] for convenience in a
vector3 class. i dont want accessor methods. i know python can do
this, but it's been a long time since I used it and am unsuccessful in
my googling and docreading. a little help please?