Change parameters of a function in Python -


is possible (and if so, how) change parameters of function after definition?

example:

from inspect import signature def f(a, b, c):     print(a + b + c)  in signature(f).parameters:     print(i)  changeparameters(f, "d", "e") print()  in signature(f).parameters:     print(i) 

would output:

a b c  d e 

just re def function name new parameters - since not used original need anyway.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -