Time we switched to unicode? (was Explanation of this Python language feature?)

Rustom Mody rustompmody at gmail.com
Tue Mar 25 06:28:52 CET 2014


On Tuesday, March 25, 2014 10:44:42 AM UTC+5:30, Mark H. Harris wrote:
> On 3/25/14 12:08 AM, Chris Angelico wrote:

> > How quickly can you switch, type one letter (to generate one Cyrillic
> > character), and switch back?

> ... very fast.

> Is not this nicer?

>  >>> Π = pi

>  >>> sin(Π/4)
> 0.7071067811865475
>  >>> cos(Π/4)
> 0.7071067811865476

Looks ugly here (both Google groups and emacs)
But I think you meant small pi not capital. Redoing:

π = pi
>>> sin(π/4)
0.7071067811865475
>>> cos(π/4)
0.7071067811865476

Looks better in emacs
Input with tex mode -- 1 char to switch
slightly verbose to type -- \pi gives π \Pi gives Π
Now to check GG...



More information about the Python-list mailing list