Just a quick note that in the gsoc-kurt branch I've implemented this:
from UtilityCode import CythonUtilityCode
...
env.use_utility_code(foo) # only on env. currently, not code.
foo = CythonUtilityCode(u"""
class __Pyx_UtilClass:
pass
cdef int __Pyx_UtilityFunction(int arg):
return arg * 2
""")
Now, this will cause __Pyx_UtilityFunction to be dumped into the final C
file, and the type descriptor to be called __Pyx_UtilClass (i.e. name
mangling is dropped in some important cases).
The details might change around a bit, this is just a note to say I've
done it, so that noone else starts on something similar.
--
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev