Wrap Numpy with Cython?

2008-06-24 Thread martin . nordstrom87
Hi! I'm trying to wrap numpy with Cython and I've tried to use this guide to manage this: http://wiki.cython.org/WrappingNumpy However when I send an array to mysum() it gives me the right answer only when dtype of the array is float, otherwise it gives me random answers. The problem may be that th

Building a "safe" python?

2008-03-27 Thread martin . nordstrom87
I'm making a game where you'll be able to make your own mods and I want to be able to write these mods in python. However, python has a lot of "dangerous" functions (like erase any file on the harddrive etc) so I want a "safe" python. I first found RExec but that is disabled in python 2.5 so I was