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 zach.ware
Recipients mark.dickinson, p-ganssle, rhettinger, serhiy.storchaka, zach.ware
Date 2018-09-14.20:57:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536958648.8.0.956365154283.issue34676@psf.upfronthosting.co.za>
In-reply-to
Content
I share Paul's concern about somebody using this (mis-?)feature and being unnecessarily broken.  However, such a restriction would have prevented the segfault that was reported and fixed in bpo-31577, and would save any other users of PyNumber_Divmod from having to implement the same kind of checks.

Does anyone have an example of a legitimate use for the current behavior?
History
Date User Action Args
2018-09-14 20:57:28zach.waresetrecipients: + zach.ware, rhettinger, mark.dickinson, serhiy.storchaka, p-ganssle
2018-09-14 20:57:28zach.waresetmessageid: <1536958648.8.0.956365154283.issue34676@psf.upfronthosting.co.za>
2018-09-14 20:57:28zach.warelinkissue34676 messages
2018-09-14 20:57:28zach.warecreate