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