MCPcopy Index your code
hub / github.com/cloudpipe/cloudpickle / _get_or_create_tracker_id

Function _get_or_create_tracker_id

cloudpickle/cloudpickle.py:108–115  ·  view source on GitHub ↗
(class_def)

Source from the content-addressed store, hash-verified

106
107
108def _get_or_create_tracker_id(class_def):
109 with _DYNAMIC_CLASS_TRACKER_LOCK:
110 class_tracker_id = _DYNAMIC_CLASS_TRACKER_BY_CLASS.get(class_def)
111 if class_tracker_id is None:
112 class_tracker_id = uuid.uuid4().hex
113 _DYNAMIC_CLASS_TRACKER_BY_CLASS[class_def] = class_tracker_id
114 _DYNAMIC_CLASS_TRACKER_BY_ID[class_tracker_id] = class_def
115 return class_tracker_id
116
117
118def _lookup_class_or_track(class_tracker_id, class_def):

Callers 3

_decompose_typevarFunction · 0.85
_class_getnewargsFunction · 0.85
_enum_getnewargsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…