[Python-Dev] Python and the Unicode Character Database (original) (raw)
Alexander Belopolsky alexander.belopolsky at gmail.com
Sun Nov 28 21:58:33 CET 2010
- Previous message: [Python-Dev] Python and the Unicode Character Database
- Next message: [Python-Dev] Python and the Unicode Character Database
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: ?????.?? ...
- Previous message: [Python-Dev] Python and the Unicode Character Database
- Next message: [Python-Dev] Python and the Unicode Character Database
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]