Is it possible in Python to split a function call up into the function and a list of its arguments? For example, taking func(1,4,True) and turning it into [func, 1, 4, True] or something similar. Ideally, I'd like to do this for an arbitrary function.
EDIT: I am a TA for a programming course, and the purpose of this is to check what test cases the students include in their code. I want to see what values the student has called their code with in order to make sure they're testing it properly. We have the students use a comparison function (which they import from a module) when writing their tests, so I'm hoping to edit the comparison function in order to check which test cases they've included.
I've had some other ideas on how to achieve the same end-result (such as reading the code in as text or copying the student code to a new file with a different definition of func), but both would involve more work and have more potential for problems than redefining the comparison function.