Python embedding question: how to expose a new "builtin"?
Rodrigo B. de Oliveira
rodrigobamboo at hotmail.com
Fri Nov 22 19:23:44 EST 2002
> >
> > After the code "dir(type(application))" executes everything works as
> > expected (application is correctly installed and I can call its
> > methods and access its properties).
> >
> > What could be possibly causing this behavior?
>
> Never saw it happen before. Maybe you're not calling PyType_Ready, or
> something of that ilk...?
>
Uops... That's what sleepless nights and no caffeine do to you :-) My
init function had the following statements:
<snip>
if (PyType_Ready(&isapy_ExtensionControlBlockType) &&
PyType_Ready(&isapy_ApplicationType))
{
return;
}
</snip>
The damage a short circuiting operation can cause, eh?
Thanks very much for the help!
Rodrigo
More information about the Python-list
mailing list