def latestFunction(oldFunc):
 dictID = id(oldFunc.func_globals)
 module = _modDictIDMap.get(dictID)
 if (module is None):
  return oldFunc
 return getattr(module, oldFunc.__name__)

def latestFunction ( oldFunc ) : dictID = id ( oldFunc . func_globals ) module = _modDictIDMap . get ( dictID ) if ( module is None ) : return oldFunc return getattr ( module , oldFunc . __name__ )
get the latest version of a function .