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 Oren Milman, mark.dickinson, serhiy.storchaka, zach.ware
Date 2018-09-10.17:54:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536602086.84.0.56676864532.issue31577@psf.upfronthosting.co.za>
In-reply-to
Content
We definitely can't make that change to PyNumber_Divmod in 3.7 at this point, I'm sure someone somewhere is relying on being able to get arbitrary information out of their objects with `divmod(crazy_object)`.  I don't know enough math to say whether there could be any legitimate mathematical use for arbitrary return values so I leave it to others to determine whether we could make that consider that change in 3.8 just to clean things up.

I've looked through _datetimemodule.c and I don't see how timedelta.__divmod__ could fail like this, since it actually creates new timedelta objects from its arguments to work from.
History
Date User Action Args
2018-09-10 17:54:46zach.waresetrecipients: + zach.ware, mark.dickinson, serhiy.storchaka, Oren Milman
2018-09-10 17:54:46zach.waresetmessageid: <1536602086.84.0.56676864532.issue31577@psf.upfronthosting.co.za>
2018-09-10 17:54:46zach.warelinkissue31577 messages
2018-09-10 17:54:46zach.warecreate