This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients Arusekk, ammar2
Date 2018-08-15.07:45:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534319104.98.0.56676864532.issue34372@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-08-15 07:45:05ammar2setrecipients: + ammar2, Arusekk
2018-08-15 07:45:04ammar2setmessageid: <1534319104.98.0.56676864532.issue34372@psf.upfronthosting.co.za>
2018-08-15 07:45:04ammar2linkissue34372 messages
2018-08-15 07:45:04ammar2create