Attributes acting as arrays (in C extensions)?
Joakim Ziegler
joakim at login1.styx.net
Thu Jan 20 18:52:10 EST 2000
More information about the Python-list mailing list
Thu Jan 20 18:52:10 EST 2000
- Previous message (by thread): Socket module on Mac
- Next message (by thread): Attributes acting as arrays (in C extensions)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Socket module on Mac
- Next message (by thread): Attributes acting as arrays (in C extensions)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list