A python program has builtin functions and user defined functions in it. I wish to list out all the user defined functions in that program. Could any one suggest me the way to how to do it?
example:
class sample():
def __init__(self):
.....some code....
def func1():
....some operation...
def func2():
...some operation..
I need output like this:
func1
func2
This isn’t strictly true. The dir() function “attempts to produce the most relevant, rather than complete, information”. Source: