[Pyrex] Adding code to the module init function
    Adam Langley 
    alangley at gmail.com
       
    Tue May 24 20:25:48 CEST 2005
    
    
  
I'm sorry if this question has been asked before - a Google search of
the archives didn't turn up anything.
How do I add code to be run at module import time*? I need to call an
init function for the C library that I'm wrapping and I would rather
not require users to make sure that they call module.init() or some
such.
(*) other than by hand editing the .c file :)
Thanks
AGL
-- 
Adam Langley                                      agl at imperialviolet.org
http://www.imperialviolet.org                       (+44) (0)7906 332512
PGP: 9113   256A   CC0F   71A6   4C84   5087   CDA5   52DF   2CB6   3D60
    
    
More information about the Pyrex
mailing list