Message336069
| 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 | <1550661059.21.0.0376798356943.issue36048@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
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: https://pythondev.readthedocs.io/numbers.html 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... |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-02-20 11:10:59 | vstinner | set | recipients: + vstinner, gvanrossum, mark.dickinson, serhiy.storchaka |
| 2019-02-20 11:10:59 | vstinner | set | messageid: <1550661059.21.0.0376798356943.issue36048@roundup.psfhosted.org> |
| 2019-02-20 11:10:59 | vstinner | link | issue36048 messages |
| 2019-02-20 11:10:59 | vstinner | create | |