Thanks again for a near instantaneous reply!

On 15/04/2022 23:39, Aaron Meurer wrote:

You are calling arg[0], but arg is already the argument of the
function. The [0] is typically only used when you have *args to accept
an arbitrary number of arguments and you want to get the first one.

OK - that has fixed it after I corrected another minor error!

Just one possible use for this mechanism would be to  create a function gamma() (say) which would contain all the original code from gamma in SymPy, and then add calls to print to clarify how it works. I assume that the line

import gamma from gamma

would replace the official version with this modification and everything would work as expected?

David


--
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/b3d0f8e3-95ca-26e1-1021-9e91995fd883%40dbailey.co.uk.

Reply via email to