[SPAM: 4.500] [Pyrex] referencing the module object (__pyx_m aka
module_cname)?
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Nov 8 01:13:05 CET 2004
Yann Vernier wrote:
> the function needs to return the newly created Module Object.
> This part works, but the "module" name needs a working declaration:
>
> cdef public object Text_Init():
> initText()
> return module
If I understand the problem correctly, the easiest way
to get hold of the module is for it to import itself.
cdef public object Text_Init():
initText()
import Text
return Text
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list