def determineDefaultFunctionName():
 try:
  (1 / 0)
 except:
  return traceback.extract_stack()[(-2)][2]

def determineDefaultFunctionName ( ) : try : ( 1 / 0 ) except : return traceback . extract_stack ( ) [ ( - 2 ) ] [ 2 ]
return the string used by python as the name for code objects which are compiled from interactive input or at the top-level of modules .