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 serhiy.storchaka
Recipients mark.dickinson, p-ganssle, rhettinger, serhiy.storchaka, zach.ware
Date 2018-09-15.04:53:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536987232.74.0.956365154283.issue34676@psf.upfronthosting.co.za>
In-reply-to
Content
An alternate idea: convert the result of __divmod__ and __rdivmod__ to tuple instead raising an error. This will support the case of returning a list. I didn't implement this initially because I think this case is very unlikely occurred in real code.

Similar changes were made in past in PyMapping_Keys(). In Python 2 it just calls the keys() method and returns the result. In Python 3 it initially converted the result to list or tuple. But since the caller code often expects a list and use PyList API with the result, later PyMapping_Keys() was fixed but making it always returning a list.
History
Date User Action Args
2018-09-15 04:53:52serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mark.dickinson, zach.ware, p-ganssle
2018-09-15 04:53:52serhiy.storchakasetmessageid: <1536987232.74.0.956365154283.issue34676@psf.upfronthosting.co.za>
2018-09-15 04:53:52serhiy.storchakalinkissue34676 messages
2018-09-15 04:53:52serhiy.storchakacreate