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 belopolsky
Recipients belopolsky, eric.smith, ezio.melotti, lemburg, mark.dickinson, vstinner
Date 2010-11-28.17:24:19
SpamBayes Score 1.5543122e-14
Marked as misclassified No
Message-id <AANLkTimhKRW5ZBSRjqgJK-fm2o04i3K140o_6x223aP=@mail.gmail.com>
In-reply-to <1290962219.95.0.443046006475.issue10557@psf.upfronthosting.co.za>
Content
On Sun, Nov 28, 2010 at 11:37 AM, Mark Dickinson <report@bugs.python.org> wrote:
>
> Mark Dickinson <dickinsm@gmail.com> added the comment:
>
>> I am not sure, whether support for non-ascii digits in float()
>> constructor is worth maintaining.
>
> I'd be very happy to drop such support.  If you allow alternative digit sets, trying to work out exactly what should
> be supported and what shouldn't gets very messy;  it's even worse for int(), where bases > 10 have to be taken
> into account.
>

I think there is a proposal (if not already in Unicode 6.0) to add
hexadecimal value property to UCD, but I don't think it is right for
int() and float() to depend on UCD in the first place.  If people need
to process exotic decimals, we can expose 'decimal' encoding, however,
translating from code-point to decimal value is trivial - just
subtract the code-point value for zero.

>> (Anyone knows whether Arabic numbers are written right to left
>> or left to right?  What is the proper decimal point character?)
>
> Well, judging by the chocolate packaging I saw recently, they're written left to right
> (so presumably if you're reading right-to-left, you see the units first, then the tens, etc.,
> which always struck me as the 'right' way to write things in the first place :-).

Did your chocolate packaging use European digits or Arabic-Indic ones?
 Note that they have different bidi properties:

'EN'
>>> unicodedata.bidirectional('\N{ARABIC-INDIC DIGIT ONE}')
'AN'

(I am not sure what 'AN' (Arabic Numeral?) bidi property actually mean.)
History
Date User Action Args
2010-11-28 17:24:21belopolskysetrecipients: + belopolsky, lemburg, mark.dickinson, vstinner, eric.smith, ezio.melotti
2010-11-28 17:24:19belopolskylinkissue10557 messages
2010-11-28 17:24:19belopolskycreate