[Edu-sig] Introducing Python to Engineering Students
Rob Malouf
rmalouf at MAIL.SDSU.EDU
Wed Mar 12 01:29:35 CET 2008
On Mar 11, 2008, at 5:11 PM, David MacQuigg wrote:
> What I would like to see is something like a simple "directive" I
> could put in my Python code to say "The following function is in C",
> and have Python set up the linkage for me.
Actually, there is! It's part of scipy and it's *very* slick:
http://www.scipy.org/Weave
It works great, though as I said, for my problems it's not always
faster than python+psyco+numpy (which I have to say I find
disappointing, considering how cool weave is).
> It would make a nice improvement in this Mandelbrot demo if you
> could show me a way to significantly improve the speed of the Python
> I already have, perhaps avoiding the need for C.
I'll take a look at it.
---
Rob Malouf <rmalouf at mail.sdsu.edu>
Department of Linguistics and Asian/Middle Eastern Languages
San Diego State University
More information about the Edu-sig
mailing list