Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python method name

import inspect
def bar():
    print("My name is", inspect.stack()[0].function)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #method
ADD COMMENT
Topic
Name
4+3 =