Guido van Rossum added the comment:

I agree with Mark and Stafan.  Hex/oct/bin are only defined for integers.  
__int__ is ambiguous -- it has the same problem as (int) in C in that it 
applies to floats and then loses the fraction.

I think the problem with Ethan's ternary logic is that it tries to act as an 
index and yet doesn't want to be an integer -- that doesn't make a lot of 
logical sense.  (You should use a dict to map from true/false/unknown, not a 
list of size three.)

----------
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed

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

Reply via email to