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

Steven D'Aprano steve at pearwood.info
Tue Mar 25 02:07:59 EDT 2014


On Tue, 25 Mar 2014 00:14:42 -0500, 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

That's the product operator.

py> from unicodedata import name
py> name('Π')
'GREEK CAPITAL LETTER PI'

You want lower-case pi, π.



-- 
Steven



More information about the Python-list mailing list