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 pablogsal
Recipients Mark.Shannon, pablogsal
Date 2021-08-20.18:07:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629482860.18.0.0801179280266.issue44964@roundup.psfhosted.org>
In-reply-to
Content
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, frame->f_last_i * 2)

This is likely going to break all users of this function. This is also not advertised in the 3.10 "how to port to Python 3.10" section.

We should discuss what's the best approach here because technically this is a backwards incompatible change, although in the other hand PyCode_Addr2Line() was not documented previously so we may have some room.

We need to decide on this ASAP, because there is only one extra release candidate before the actual release of 3.10/
History
Date User Action Args
2021-08-20 18:07:40pablogsalsetrecipients: + pablogsal, Mark.Shannon
2021-08-20 18:07:40pablogsalsetmessageid: <1629482860.18.0.0801179280266.issue44964@roundup.psfhosted.org>
2021-08-20 18:07:40pablogsallinkissue44964 messages
2021-08-20 18:07:40pablogsalcreate