Author vstinner
Recipients gvanrossum, mark.dickinson, serhiy.storchaka, vstinner
Date 2019-02-20.11:10:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I like the idea. Rejecting float but not decimal.Decimal is inconsistent. __index__ has been written explicitly for this purpose.

I'm always confused and lost in subtle details of the Python and C API in how they handle numbers, so I wrote some notes for myself:

Some functions accept only int, others use __int__, others __index__. Some functions silently truncate into 32 or 64-bit signed integer. Some other raise a OverflowError or ValueError...
Date User Action Args
2019-02-20 11:10:59vstinnersetrecipients: + vstinner, gvanrossum, mark.dickinson, serhiy.storchaka
2019-02-20 11:10:59vstinnersetmessageid: <>
2019-02-20 11:10:59vstinnerlinkissue36048 messages
2019-02-20 11:10:59vstinnercreate