Attributes acting as arrays (in C extensions)?
Joakim Ziegler
joakim at login1.styx.net
Thu Jan 20 18:52:10 EST 2000
I'm implementing a Python module in C. I've already done object attributes
which invoke C functions to get and set the values, but is it possible to
have object attributes that act as arrays? So that you can do
object.attribute[n]
in Python, and call a C function with object, the name of the attribute, and
n as arguments? I've not been able to find docs on how to do this.
--
Joakim Ziegler - styx research director - joakim at styx.net
FIX sysop - FIXmud admin - FIDEL & Conglomerate developer
More information about the Python-list
mailing list