Python embedding question: how to expose a new "builtin"?
Alex Martelli
aleax at aleax.it
Fri Nov 22 05:40:19 EST 2002
Rodrigo B. de Oliveira wrote:
...
> print dir(application)
> print type(application)
> print dir(type(application))
> print dir(application)
>
> </snip>
>
> has the following output:
>
> <output>
> []
> <type 'isapy.Application'>
> ['__class__', '__delattr__', '__doc__', '__getattribute__',
> '__hash__', '__init__', '__new__', '__reduce__', '__repr__',
> '__setattr__', '__str__', 'addHandler', 'minThreadPoolSize', 'onEnd',
> 'path']
> ['__class__', '__delattr__', '__doc__', '__getattribute__',
> '__hash__', '__init__', '__new__', '__reduce__', '__repr__',
> '__setattr__', '__str__', 'addHandler', 'minThreadPoolSize', 'onEnd',
> 'path']
> </output>
>
> 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...?
Alex
More information about the Python-list
mailing list