MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / __init__

Method __init__

_pydevd_bundle/pydevd_stackless.py:48–60  ·  view source on GitHub ↗
(self, tasklet_weakref, tasklet)

Source from the content-addressed store, hash-verified

46 _last_id = 0
47
48 def __init__(self, tasklet_weakref, tasklet):
49 self.frame_id = None
50 self.tasklet_weakref = tasklet_weakref
51
52 last_id = _tasklet_to_last_id.get(tasklet)
53 if last_id is None:
54 _TaskletInfo._last_id += 1
55 last_id = _TaskletInfo._last_id
56 _tasklet_to_last_id[tasklet] = last_id
57
58 self._tasklet_id = last_id
59
60 self.update_name()
61
62 def update_name(self):
63 tasklet = self.tasklet_weakref()

Callers

nothing calls this directly

Calls 2

update_nameMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected