Author loewis
Recipients eric.smith, ezio.melotti, ggenellina, lemburg, loewis, mark.dickinson, pitrou
Date 2009-09-22.11:35:43
SpamBayes Score 0.000400922
Marked as misclassified No
Message-id <>
In-reply-to <>
> int()/float() use the decimal codec for numbers - this only supports
> base-10 numbers. For hex numbers, we'd need a new hex codec (only
> the encoder part, actually), otherwise, int('a') would start to return
> 10.

That's not true. PyUnicode_EncodeDecimal could happily accept hexdigits,
and int(u'a') would still be rejected. In fact, PyUnicode_EncodeDecimal
*already* accepts arbitrary Latin-1 characters, whether they represent
digits or not. I suppose this is to support non-decimal bases, so it
would only be consequential to widen this to all characters that
reasonably have the Hex_Digit property (although I'm unsure which ones
are excluded at the moment).
Date User Action Args
2009-09-22 11:35:45loewissetrecipients: + loewis, lemburg, mark.dickinson, ggenellina, pitrou, eric.smith, ezio.melotti
2009-09-22 11:35:43loewislinkissue6632 messages
2009-09-22 11:35:43loewiscreate