Received from Brian Blais on Tue, Apr 07, 2009 at 03:29:11PM EDT:
(snip)
>> You could give the cython and python modules slightly different names
>> (e.g., sim_cython and sim_python) and create a wrapper module (called
>> sim) that contains the following code:
>>
>> try:
>> from sim_cython import *
>> except ImportError:
>> from sim_python import *
>>
>
> Thanks! Now, if not every class is implemented in sim_cython, should I
> do:
>
> from sim_python import *
> try:
> from sim_cython import *
> except ImportError:
> pass
>
> thanks,
> bb
Yes, if you intend to replace the symbols imported into the current
namespace from sim_python with their analogues in sim_cython.
L.G.
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev