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 steve.dower
Recipients David Heffernan, christian.heimes, michaeldcurran, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-04-19.19:31:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618860707.87.0.115491794171.issue38748@roundup.psfhosted.org>
In-reply-to
Content
Even better, one that doesn't crash but safely returns a value that can be checked. (IIRC, we have a test that does this to ensure that structs smaller than 9 bytes are passed on the stack.)

Half C/half Python is fine - the C bits would go into _ctypes_test.c

Given how well you reported the issue in the first place, I'm confident the quick start in the devguide will get you up and building quickly: https://devguide.python.org/  Adding the test might be a bit more of an adventure (though not as much as fixing it...)
History
Date User Action Args
2021-04-19 19:31:47steve.dowersetrecipients: + steve.dower, paul.moore, christian.heimes, tim.golden, zach.ware, David Heffernan, michaeldcurran
2021-04-19 19:31:47steve.dowersetmessageid: <1618860707.87.0.115491794171.issue38748@roundup.psfhosted.org>
2021-04-19 19:31:47steve.dowerlinkissue38748 messages
2021-04-19 19:31:47steve.dowercreate