Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.040 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'bug.': 0.07; 'module)': 0.09; 'subject:2.7': 0.09; 'supported.': 0.09; 'subject: \n ': 0.15; '-tkc': 0.16; 'ah,': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'subject:non': 0.16; 'wrote:': 0.16; 'odd': 0.18; 'fraction': 0.22; 'header:In-Reply-To:1': 0.24; 'feature': 0.24; 'testing': 0.25; 'chris': 0.26; 'decimal': 0.29; 'request,': 0.29; 'subject: [': 0.29; "i'm": 0.30; 'smart': 0.33; 'add': 0.34; 'unicode': 0.35; 'supports': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'really': 0.37; 'charset :us-ascii': 0.37; 'things': 0.38; 'no,': 0.38; 'anything': 0.38; 'does': 0.39; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'your': 0.60; "they're": 0.66; 'worth': 0.67; 'hearing': 0.67; 'difference.': 0.84; 'numerals': 0.84; 'received:23': 0.84; 'roman': 0.84; 'try.': 0.91 X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-Sender-Id: wwwh|x-authuser|tim@thechases.com X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|tim@thechases.com X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1437335720278:3716616083 X-MC-Ingress-Time: 1437335720278 Date: Sun, 19 Jul 2015 14:55:20 -0500 From: Tim Chase To: python-list@python.org Subject: Re: Devanagari int literals [was Re: Should non-security 2.7 bugs be fixed?] In-Reply-To: References: <7083e494-6192-4acb-aea9-216d858171bc@googlegroups.com> <55ab2b57$0$1664$c3e8da3$5496439d@news.astraweb.com> <20150719075601.779a4edb@bigbox.christie.dr> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AuthUser: tim@thechases.com X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437336659 news.xs4all.nl 2845 [2001:888:2000:d::a6]:46351 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:94158 On 2015-07-20 04:07, Chris Angelico wrote: > The int() and float() functions accept, if I'm not mistaken, > anything with Unicode category "Nd" (Number, decimal digit). In > your examples, the fraction (U+215B) is No, and the Roman numerals > (U+2168, U+2182) are Nl, so they're not supported. Adding support > for these forms might be accepted as a feature request, but it's > not a bug. Ah, that makes sense. Some simple testing (thanks, unicodedata module) supports your conjecture. It's not a particularly big deal so not really worth the brain-cycles to add support for them. Just upon hearing "Python's int() does smart things with Unicode characters", those were some of my first characters to try. The failure struck me as odd until you explained the simple difference. -tkc