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 gvanrossum
Recipients ethan.furman, gvanrossum, mark.dickinson, pitrou, rhettinger, serhiy.storchaka, skrah
Date 2013-12-15.22:50:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387147845.36.0.725933180477.issue19988@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2013-12-15 22:50:45gvanrossumsetrecipients: + gvanrossum, rhettinger, mark.dickinson, pitrou, skrah, ethan.furman, serhiy.storchaka
2013-12-15 22:50:45gvanrossumsetmessageid: <1387147845.36.0.725933180477.issue19988@psf.upfronthosting.co.za>
2013-12-15 22:50:45gvanrossumlinkissue19988 messages
2013-12-15 22:50:45gvanrossumcreate