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 gvanrossum
Recipients Dennis Sweeney, Guido.van.Rossum, Mark.Shannon, Yonatan Goldschmidt, ammar2, chris.jerdonek, corona10, erlendaasland, gvanrossum, hauntsaninja, iritkatriel, pablogsal, petr.viktorin, rhettinger, rkm, scoder, serhiy.storchaka, vstinner
Date 2022-04-01.16:23:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648830190.0.0.603901249429.issue40222@roundup.psfhosted.org>
In-reply-to
Content
> See bpo-47185: code.replace(co_code=new_code) no longer catch exceptions on Python 3.11.

Surely the bigger issue is that the contents of new_code itself must be totally different? Also there are other tables that need to be adjusted if you really do change co_code, e.g. the debugging tables.
History
Date User Action Args
2022-04-01 16:23:10gvanrossumsetrecipients: + gvanrossum, rhettinger, scoder, vstinner, petr.viktorin, chris.jerdonek, Mark.Shannon, serhiy.storchaka, Guido.van.Rossum, ammar2, corona10, pablogsal, Dennis Sweeney, erlendaasland, Yonatan Goldschmidt, hauntsaninja, rkm, iritkatriel
2022-04-01 16:23:09gvanrossumsetmessageid: <1648830190.0.0.603901249429.issue40222@roundup.psfhosted.org>
2022-04-01 16:23:09gvanrossumlinkissue40222 messages
2022-04-01 16:23:09gvanrossumcreate