Mark Dickinson added the comment:

> 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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16290>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to