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 vstinner
Recipients Mark.Shannon, kj, vstinner
Date 2022-03-30.15:07:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648652833.95.0.646428359512.issue47164@roundup.psfhosted.org>
In-reply-to
Content
> I've had to debug a segfault before only because the inline function implicitly cast its arguments, and it was accessing a non-existent member. If it were a macro it would access the struct member directly, and the compiler would be able to catch that and warn me before runtime.

This is part of Python C API legacy and as I wrote, it's not going to change soon. The minor enhancement that we can do is to inject an assertion when Python is built in debug mode.
History
Date User Action Args
2022-03-30 15:07:14vstinnersetrecipients: + vstinner, Mark.Shannon, kj
2022-03-30 15:07:13vstinnersetmessageid: <1648652833.95.0.646428359512.issue47164@roundup.psfhosted.org>
2022-03-30 15:07:13vstinnerlinkissue47164 messages
2022-03-30 15:07:13vstinnercreate