New to Python: Features

Richard Blackwood richardblackwood at cloudthunder.com
Wed Oct 6 20:15:13 EDT 2004


<SNIP>

>
>I am not sure that:
>  import psyco
>  psyco.full()
>...will do anything useful in Pyrex code, so I wouldn't bother.
>
>Let us say you manually translated 'mymodule.py' to 'mymodule.pyx' (or
>wrote 'mymodule.pyx' directly), then ran the Pyrex preprocessor and a C
>compiler to make 'mymodule.so' on a linux platform, and placed it in a
>proper location.
>
>Let us also say you have another module 'pythonmodule.py' which imports
>'mymodule'.  If the psyco import and psyco.full() lines are in
>pythonmodule.py (or any other python module that is imported), psyco
>will do its thing on the Python source.
>
>I do not know if leaving the psyco import and psyco.full() lines in
>'mymodule.pyx' will do anything good or bad, as I have never tried such
>a thing (for me, psyco is sufficient in the rare case that I need such
>functionality).
>
> - Josiah
>
>  
>
I will have to check the docs for Pyrex to see if it does not performs 
its compilation on imported Python modules but only on Pyrex modules.



More information about the Python-list mailing list