Ammar Askar <am...@ammaraskar.com> added the comment:
Note that even just adding an extra arithmetic in your first expression breaks the line numbers: >>> code = """( ... [ ... call1(), ... call2() ... ] ... + call3() ... * call4() ... + call5() ... )""" >>> dis.dis(code) 8 0 LOAD_NAME 0 (call1) 2 CALL_FUNCTION 0 4 LOAD_NAME 1 (call2) 6 CALL_FUNCTION 0 8 BUILD_LIST 2 10 LOAD_NAME 2 (call3) 12 CALL_FUNCTION 0 14 LOAD_NAME 3 (call4) 16 CALL_FUNCTION 0 18 BINARY_MULTIPLY 20 BINARY_ADD 22 LOAD_NAME 4 (call5) 24 CALL_FUNCTION 0 26 BINARY_ADD 28 RETURN_VALUE The closest existing bug to this would be issue 12458, specifically with Serhiy's last comment. ---------- nosy: +ammar2 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34372> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com