5 Dec
2007
5 Dec
'07
11:56 p.m.
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