[Pyrex] Re: Globals and wrapping Eiffel

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Nov 19 23:59:37 CET 2003


Godefroid Chapelle <gotcha at bubblenet.be>:

> This was the question I wanted to ask : is there a way in Pyrex to
> declare some code that must run once when the extension module is
> imported ?

Yes, you just put the code at the top level, like
you would in Python.

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