(self, tasklet_weakref, tasklet)
| 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() |
nothing calls this directly
no test coverage detected