Incidentally, this doesn't work:

     def getdata(self, x, y):
         return self.ptr.data[x * self.ptr.columns + y]
     def setdata(self, x, y, n):
         self.ptr.data[x * self.ptr.columns + y] = n
     data = property( getdata, setdata )

No matter how I access foo.data it just doesn't pass the parameters. I guess
it's intended behavior.
Anyway, thanks Dag, I'll see if I can hack together something, but probably
I'll leave it as it is, which is gonna be fine enough for now! Tusen takk!

“Greenspun's Tenth Rule of Programming: any sufficiently complicated C or
Fortran program contains an ad hoc informally-specified bug-ridden slow
implementation of half of Common Lisp.”
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to