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 mark.dickinson
Recipients mark.dickinson, serhiy.storchaka
Date 2012-10-20.13:17:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350739064.32.0.748018133948.issue16290@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2012-10-20 13:17:44mark.dickinsonsetrecipients: + mark.dickinson, serhiy.storchaka
2012-10-20 13:17:44mark.dickinsonsetmessageid: <1350739064.32.0.748018133948.issue16290@psf.upfronthosting.co.za>
2012-10-20 13:17:44mark.dickinsonlinkissue16290 messages
2012-10-20 13:17:44mark.dickinsoncreate