A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-November/106108.html below:

[Python-Dev] Python and the Unicode Character Database

[Python-Dev] Python and the Unicode Character Database [Python-Dev] Python and the Unicode Character DatabaseSteven D'Aprano steve at pearwood.info
Mon Nov 29 01:14:31 CET 2010
Martin v. Löwis wrote:
>>>>>> float('١٢٣٤.٥٦')
>>> 1234.56
> 
> I think it's a bug that this works. The definition of the float builtin says
[...]

I think that's a documentation bug rather than a coding bug. If Python 
wishes to limit the digits allowed in numeric *literals* to ASCII 0...9, 
that's one thing, but I think that the digits allowed in numeric 
*strings* should allow the full range of digits supported by the Unicode 
standard.

The former ensures that literals in code are always readable; the later 
allows users to enter numbers in their own number system. How could that 
be a bad thing?



-- 
Steven

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4