Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?]

Rustom Mody rustompmody at gmail.com
Tue Jul 21 05:30:48 CEST 2015


On Sunday, July 19, 2015 at 10:15:37 AM UTC+5:30, Steven D'Aprano wrote:
> > JFTR: My kids (um... students) have just managed to add devanagari
> > numerals to python.
> > ie we can now do
> > 
> >>>> १ + २
> > 3
> 
> That is actually quite awesome, and I would support a new feature that set
> the numeric characters to a particular script, e.g. Latin, Arabic,
> Devanagari, whatever, and printed them in that same script. It seems
> unfortunate that १ + २ prints as 3 rather than ३.

BTW my boys have just mailed me their latest:

>>> 九.九九
                                                                            
9.99

Can some unicode/Chinese literate person inform me whether
that ideograph is equivalent to roman '9' or roman 'nine'?


More information about the Python-list mailing list