A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2010-November/106071.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 DatabaseAntoine Pitrou solipsis at pitrou.net
Sun Nov 28 22:04:15 CET 2010
On Sun, 28 Nov 2010 15:58:33 -0500
Alexander Belopolsky <alexander.belopolsky at gmail.com> wrote:

> On Sun, Nov 28, 2010 at 3:43 PM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> ..
> >> For example,
> >> I don't think that supporting
> >>
> >> >>> float('١٢٣٤.٥٦')
> >> 1234.56
> >>
> >> is more important than to assure users that once their program
> >> accepted some text as a number, they can assume that the text is
> >> ASCII.
> >
> > Why would they assume the text is ASCII?
> 
> def deposit(self, amountstr):
>       self.balance += float(amountstr)
>       audit_log("Deposited: " + amountstr)
> 
> Auditor:
> 
> $ cat numbered-account.log
> Deposited: ?????.??


I'm not sure that's how banking applications are written :)

Antoine.
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