Serhiy Storchaka <[email protected]> added the comment:
On other hand, consider the following example of multiline assignment:
$ rlwrap ./python -m dis
a = [
x,
y,
]
In 3.7:
2 0 LOAD_NAME 0 (x)
3 2 LOAD_NAME 1 (y)
4 BUILD_LIST 2
6 STORE_NAME 2 (a)
8 LOAD_CONST 0 (None)
10 RETURN_VALUE
In 3.8:
2 0 LOAD_NAME 0 (x)
3 2 LOAD_NAME 1 (y)
1 4 BUILD_LIST 2
6 STORE_NAME 2 (a)
8 LOAD_CONST 0 (None)
10 RETURN_VALUE
In 3.7 the line of the assignment "a = [" is not traced. In 3.8 it is traced.
These all are a consequences of the same change.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34876>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com