W
williams.jasonscott
Hi,
I am having trouble figuring out how to set up an object to be
scriptable through the C API. An example of what I am attempting to
do:
I've tried defining __getitem__ as a method, but that hasn't worked.
Is there a tp_field that I am failing to understand, something like
tp_iter and tp_iternext?
thanks~
I am having trouble figuring out how to set up an object to be
scriptable through the C API. An example of what I am attempting to
do:
Traceback (most recent call last):obj = foo.Foo()
obj["key"]
I've tried defining __getitem__ as a method, but that hasn't worked.
Is there a tp_field that I am failing to understand, something like
tp_iter and tp_iternext?
thanks~