diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2023-05-04 07:04:21 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-05-06 10:08:09 -0400 |
| commit | 342d36a36811e25454976edd099512b2ab2d37df (patch) | |
| tree | 2fd7d916f82f7d39a05fe16accd5e8751416f962 /coverage/pytracer.py | |
| parent | d3c63a7cc1bf35712eae4ba08ea1b6e135a0e2bb (diff) | |
| download | python-coveragepy-git-342d36a36811e25454976edd099512b2ab2d37df.tar.gz | |
wip
Diffstat (limited to 'coverage/pytracer.py')
| -rw-r--r-- | coverage/pytracer.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/coverage/pytracer.py b/coverage/pytracer.py index 81832b0f..543a6128 100644 --- a/coverage/pytracer.py +++ b/coverage/pytracer.py @@ -71,6 +71,14 @@ class PyTracer(TTracer): self.context: Optional[str] = None self.started_context = False + # The data_stack parallels the Python call stack. Each entry is + # information about an active frame, a four-element tuple: + # [0] The TTraceData for this frame's file. Could be None if we + # aren't tracing this frame. + # [1] The current file name for the frame. None if we aren't tracing + # this frame. + # [2] The last line number executed in this frame. + # [3] Boolean: did this frame start a new context? self.data_stack: List[Tuple[Optional[TTraceFileData], Optional[str], TLineNo, bool]] = [] self.thread: Optional[threading.Thread] = None self.stopped = False |
