Re: "constructor" or initialization function for module

2007-08-18 Thread beginner
On Aug 18, 8:25 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > beginner wrote: > > Hi Everyone, > > > An extended module (.pyd) written in C have an init function that is > > called when the module is imported. Does anyone know if there is a way > > to provide an init function for a module written i

Re: "constructor" or initialization function for module

2007-08-18 Thread Steve Holden
beginner wrote: > Hi Everyone, > > An extended module (.pyd) written in C have an init function that is > called when the module is imported. Does anyone know if there is a way > to provide an init function for a module written in python? > The body of a Python module is executed the first time i

"constructor" or initialization function for module

2007-08-18 Thread beginner
Hi Everyone, An extended module (.pyd) written in C have an init function that is called when the module is imported. Does anyone know if there is a way to provide an init function for a module written in python? Thanks, Geoffrey -- http://mail.python.org/mailman/listinfo/python-list