Pyd: Wrapping too many functions in a class gives a compiler error
Kirk McDonald
kirklin.mcdonald at gmail.com
Thu Jul 12 08:51:16 PDT 2007
Simen Haugen wrote:
> To use it, you create a mixin of _wrap_class outside of the main function,
> and initialize it after module_init() as before?
> Thats what I tried, but then I get a message about "identifier PyObject not
> defined" in make_wrapper.d line 91.
>
> I only tried this on my large class, the other are still using
> wrap_class!(...)
>
Bah, the devil is in the details... For now, add
import python;
to the top of your module. That should fix it for now.
--
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org
More information about the Digitalmars-d
mailing list