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