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 mark.dickinson
Recipients jollyoliver657, mark.dickinson
Date 2021-01-10.11:05:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610276703.55.0.883898296048.issue42879@roundup.psfhosted.org>
In-reply-to
Content
This is more likely to be a bug in Pygame than in Python itself. What's likely happening here is that some part of the Pygame machinery is setting an exception state but then returning a value as normal. (Generally, if some function in a C extension sets an exception, that function should return NULL or -1.) That then leaves things in an inconsistent state, and Python doesn't notice that inconsistent state until the "int" call happens.

Please could you report to the Pygame folks, if you haven't done so already? It certainly is *possible* that it's actually a core Python bug, but even then the first step would be to eliminate the Pygame component from the code-to-reproduce.
History
Date User Action Args
2021-01-10 11:05:03mark.dickinsonsetrecipients: + mark.dickinson, jollyoliver657
2021-01-10 11:05:03mark.dickinsonsetmessageid: <1610276703.55.0.883898296048.issue42879@roundup.psfhosted.org>
2021-01-10 11:05:03mark.dickinsonlinkissue42879 messages
2021-01-10 11:05:03mark.dickinsoncreate