Is there a simple way to get the names of the parameters passed to a Python function, from inside the function?
I'm building an interactive image processing tool that works at the Python command line.
I'd like to be able to do this:
beta = alpha * 2; # double all pixel values in numpy array
save(beta) # save image beta in filename "beta.jpg"
The alternative is to make the user explicitly type the filename, which is extra typing I'd like to avoid:
beta = alpha * 2; # double all pixel values in numpy array
save(beta, "beta") # save image beta in filename "beta.jpg"