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

Function clear_cached_thread_id

_pydevd_bundle/pydevd_constants.py:615–623  ·  view source on GitHub ↗
(thread)

Source from the content-addressed store, hash-verified

613
614
615def clear_cached_thread_id(thread):
616 with _thread_id_lock:
617 try:
618 if thread.__pydevd_id__ != "console_main":
619 # The console_main is a special thread id used in the console and its id should never be reset
620 # (otherwise we may no longer be able to get its variables -- see: https://www.brainwy.com/tracker/PyDev/776).
621 del thread.__pydevd_id__
622 except AttributeError:
623 pass
624
625
626# Don't let threads be collected (so that id(thread) is guaranteed to be unique).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected