wrf.get_id

wrf.get_id(obj)

Return the object id.

The object id is used as a caching key for various routines. If the object type is a mapping, then the result will also be a mapping of each key to the object id for the value. Otherwise, only the object id is returned.

Parameters:obj (object) – Any object type.
Returns:If the obj parameter is not a mapping, then the object id is returned. Otherwise, a mapping of each key to the object id for the value is returned.
Return type:int or dict