[issue44964] Semantics of PyCode_Addr2Line() changed

2021-10-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 490a7427dce1cba55a9fbdbccd092e4c8ffae05f by Pablo Galindo (Miss Islington (bot)) in branch '3.10': bpo-44964: Correct the note about the f_lasti field (GH-28208) (GH-28276) https://github.com/python/cpython/commit/490a7427dce1cba55a9fbdbc

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b045174a6dbf1060f092265853f0c78f0704a21a by Miss Islington (bot) in branch '3.10': bpo-44964: Correct the note about the f_lasti field (GH-28208) (GH-28276) https://github.com/python/cpython/commit/b045174a6dbf1060f092265853f0c78f0704a21a ---

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-10 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ab327f2929589407595a3de95727c8ab34ddd4af by Pablo Galindo Salgado in branch 'main': bpo-44964: Correct the note about the f_lasti field (GH-28208) https://github.com/python/cpython/commit/ab327f2929589407595a3de95727c8ab34ddd4af -- nosy:

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +26694 pull_request: https://github.com/python/cpython/pull/28276 ___ Python tracker ___ __

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +26633 pull_request: https://github.com/python/cpython/pull/28208 ___ Python tracker ___ ___

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-07 Thread miss-islington
miss-islington added the comment: New changeset fc840736e54da0557616882012f362b809490165 by Miss Islington (bot) in branch '3.10': bpo-44964: Add a note explaining the new semantics of f_last_i in frame objects (GH-28200) https://github.com/python/cpython/commit/fc840736e54da0557616882012f36

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +26627 pull_request: https://github.com/python/cpython/pull/28202 ___ Python tracker _

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset fa2c0b85a8d5c9486661083afdf38cbaadb3432a by Pablo Galindo Salgado in branch 'main': bpo-44964: Add a note explaining the new semantics of f_last_i in frame objects (GH-28200) https://github.com/python/cpython/commit/fa2c0b85a8d5c94866610

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-09-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +26625 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28200 ___ Python tracker __

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-08-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Are you ok if I add a small comment to the what's new of 3.10? -- ___ Python tracker ___ _

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-08-21 Thread Mark Shannon
Mark Shannon added the comment: It is not `PyCode_Addr2Line()` that has changed, but `frame->f_lasti`. If you call `PyCode_Addr2Line(frame->f_code, 8)` in 3.9 you get the same behavior as calling `PyCode_Addr2Line(frame->f_code, 8)` in 3.10. Assuming the bytecode is unchanged. The differ

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-08-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Sorry, bad copy paste. Correction: Technically, the function was called with: PyCode_Addr2Line(frame->f_code, frame->f_last_i) but now it needs to be called with PyCode_Addr2Line(frame->f_code, frame->f_last_i * 2) -- __

[issue44964] Semantics of PyCode_Addr2Line() changed

2021-08-20 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : I have noticed that the semantics of PyCode_Addr2Line() have changed from 3.9 to 3.10. Technically, the function was called with: PyCode_Addr2Line(frame->f_code, frame->f_last_i * 2) but now it needs to be called with PyCode_Addr2Line(frame->f_code