[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Importing sip-generated module into multiple interpreters
From: "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date: 2005-09-07 7:26:35
Message-ID: 44640.194.203.13.71.1126077995.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]
>> If you use the Python API to import the module then the init function
>> will
>> only be called once, no matter how many times it is imported. You were
>> calling the init function explicitly.
>
> We prefer to link our module statically, rather than
> as a .pyd, that's why we rely on the explicit init.
> We would prefer to leave things this way, but
> we'll do some experiments to avoid the explicit
> initialisation.
I don't see why static linking should make a difference. (Without checking
the Python source) a statically linked module still has to be imported and
Python will only call it's init function once.
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic