+ 1
Function parameters
Hi everyone! Does anybody know how to get the parameters of built in functions through python itself rather than Google. I've already tried inspect.signature() and inspect.getfullargspec(), but they just don't work for built in functions.
7 Answers
0
like if you import math and want to see all its methods and stuff?
import math
print(dir(math))
0
Thanks Slick for your comment, but that's not what I'm looking for.
It's like getting keyword arguments of functions e.g timedelta has days and weeks ad its keyword arguments, but if sb is not familiar with this function he can't get to know about these stuffs
0
Yeah you got the point, but my problem is that this mehod doesn't work for built in functions, is there any way to solve it?
0
for what specific one?
0
For any built in function
0
print the help then.