Zak, 24.06.2013 23:44:
In theory, PEP 3121 in Py3.
http://www.python.org/dev/peps/pep-3121/
However, the partial support in Cython doesn't currently enable reloading,
so more work needs to be done until this can be made to work.
You could use cython.inline("cython code") to compile code from a string.
It's limited to a function body, though.
You could also use pyximport with the option "reload=True" (IIRC).
Both options will simply create a new module under a new name and replace
the old one. So the reload isn't a real one, but the effect is the same.
You'll still have to restart your runtime from time to time to get rid of
the old modules, in case they hold on to any resources (at least a bit of
memory). But that's still way better than having to do it for each change.
Stefan