Stefan, On Thu, 15 Jul 2010 23:15:57 +0200, Stefan Behnel <[email protected]> wrote: > Dag Sverre Seljebotn, 15.07.2010 10:24: > > On 07/15/2010 07:27 AM, Robert Bradshaw wrote: > >> We'd certainly like to support function-level compilation (though > >> there are technical questions about how to get the source) and perhaps > >> even line-by-line via strings. > > +1 for function level compilation through a decorator. Shouldn't be hard to > do at all, as long as we have the code readily available (i.e. the .py > file, not just a .pyc file or something). > > It would be a nice additional feature to compile the code from a string > instead of a file in that case, and to report the line number offset > correctly. > > > >> Right now the Sage notebook gives this > >> feel for Cython, which is probably why I haven't felt the pinch (I > >> rarely write and invoke a setup.py manually). > > Yes, the Sage notebook is a really nice little front-end for Cython > development. Almost like an interactive shell. The sick thing is that you > have something in the GB range on your hard drive just to run a little web > app that compiles and runs code... > > Now that I say that, what about IPython support for Cython compilation? > ICython, anyone?
I already provided something along the lines on this list (I can't find the url anymore) and I "packaged" it up for my experiment: http://alxr.usatlas.bnl.gov/lxr/source/atlas/Tools/PyUtils/bin/icython.py being built atop the python interpreter, it has some limitations (like being only able to see 'cpdef' functions, creating one .so per little cython snippet and probably other limitations I never ran into) cheers, sebastien. -- ######################################### # Dr. Sebastien Binet # Laboratoire de l'Accelerateur Lineaire # Universite Paris-Sud XI # Batiment 200 # 91898 Orsay ######################################### _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
