[issue38508] Tracing events anomaly when creating a multi-line list
Fabio Zadrozny
report at bugs.python.org
Thu Oct 17 10:53:28 EDT 2019
New submission from Fabio Zadrozny <fabioz at users.sourceforge.net>:
When creating a multi-line list it seems that there's an additional line event that goes back to the start of the list.
i.e.: considering the code as:
[
1,
2
]
when stepping through the list, a debugger would get a line event at the `1` then at `2` and then at `['.
I'm attaching a sample code which prints the traced lines, where it's possible to see that there's a line event that goes backward to the list creation there (note that on Python 3.7 there's no line event for the list creation).
----------
components: Interpreter Core
files: snippet33.py
messages: 354845
nosy: fabioz
priority: normal
severity: normal
status: open
title: Tracing events anomaly when creating a multi-line list
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48665/snippet33.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38508>
_______________________________________
More information about the Python-bugs-list
mailing list