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-December/106325.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 DatabaseEric Smith eric at trueblade.com
Thu Dec 2 23:45:19 CET 2010
On 12/2/2010 5:43 PM, M.-A. Lemburg wrote:
> Eric Smith wrote:
>>> The current behavior should go nowhere; it is not useful. Something very
>>> similar to the current behavior (but done correctly) should go into the
>>> locale module.
>>
>> I agree with everything Martin says here. I think the basic premise is:
>> you won't find strings "in the wild" that use non-ASCII digits but do
>> use the ASCII dot as a decimal point. And that's what float() is looking
>> for. (And that doesn't even begin to address what it expects for an
>> exponent 'e'.)
>
> http://en.wikipedia.org/wiki/Decimal_mark
>
> "In China, comma and space are used to mark digit groups because dot is used as decimal mark."

Is that an ASCII dot? That page doesn't say.

> Note that float() can also parse integers, it just returns them as
> floats :-)

:)


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