Written by Sean Behan on Sat Mar 04th 2017

Here is how to get the string representation of a method in Python

def my_method_name():
    print "Hello World"

my_method_name.__name__ 
# => 'my_method_name'

Short and sweet!


Tagged with..
#Python #Shortcuts #Tips #Methods #Dynamic Programming

Just finishing up brewing up some fresh ground comments...