[capi-sig] is there a tp_getattr equivalent for module?

Anton Tropashko sndive at gmail.com
Thu Dec 6 00:56:04 CET 2007


is there a tp_getattr equivalent for module?
i want to dynamically check if an object exists in a module space
dynamically
and return it if it does.

currently i have
mymodule.getattr("foo")
where getattr is my lookup function plugged thru  PyMethodDef/Py_ModuleInit

i want to be able to access foo directly, like so:
mymodule.foo


More information about the capi-sig mailing list