Let me see if I understand correctly... what you suggest is something like: 1) adding an argument flag to construct_arrays that enables/disables the feature 2) adding the same argument flag to construct_loop which is passed untouched to construct_arrays 3) set the flag to "disable" in the construct_loop call inside PyUFunc_GenericFunction 4) write an exact copy of PyUFunc_GenericFunction with the flag "enabled" 5) in ufunc_generic_call, call the latter instead of PyUFunc_GenericFunction Am I correct?
Sounds doable to me as long as ufunc.__call__ is not directly or indirectly in the numpy C API. _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion