get name of object python code example Example: how to get the name of an object in python dict([(t.__name__, t) for t in fun_list])