Unicode 7

Michael Torrie torriem at gmail.com
Fri May 2 13:39:42 EDT 2014


On 05/02/2014 10:50 AM, Rustom Mody wrote:
> Python just barfs:
> 
>>>> fine = 1
>   File "<stdin>", line 1
>     fine = 1
>     ^
> SyntaxError: invalid syntax
>>>>
> 
> The point of that example is to show that unicode gives all kind of 
> "Aaah! Gotcha!!" opportunities that just dont exist in the old world.
> Python may have got this one right but there are surely dozens of others.

Except that it doesn't.  This has nothing to do with unicode handling.
It has everything to do with what defines an identifier in Python.  This
is no different than someone wondering why they can't start an
identifier in Python 1.x with a number or punctuation mark.




More information about the Python-list mailing list