Message173390
> This means that you should add a branch for integers too.
I'd rather not go that far, at least in this issue: we'd also end up changing __float__ to allow it to return an int, in that case. If we're considering that, the discussion should go back to python-dev / python-ideas.
One difference is that int -> float is a lossy conversion that has to care about details like rounding and overflow. float -> complex in contrast is much simpler. |
|
Date |
User |
Action |
Args |
2012-10-20 13:17:44 | mark.dickinson | set | recipients:
+ mark.dickinson, serhiy.storchaka |
2012-10-20 13:17:44 | mark.dickinson | set | messageid: <1350739064.32.0.748018133948.issue16290@psf.upfronthosting.co.za> |
2012-10-20 13:17:44 | mark.dickinson | link | issue16290 messages |
2012-10-20 13:17:44 | mark.dickinson | create | |
|