Complex literals (was Re: I am never going to complain about Python again)

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Oct 11 13:03:29 EDT 2013


On Fri, 11 Oct 2013 10:05:03 -0400, Roy Smith wrote:

> In article <mailman.1001.1381491074.18130.python-list at python.org>,
>  Oscar Benjamin <oscar.j.benjamin at gmail.com> wrote:
> 
>> If someone tried to explain why their field couldn't use ð for the
>> circumference of a unit circle I would suggest that they adjust the
>> other parts of their notation not ð (there are other uses of ð.
> 
> Pi is wrong:

Pi is right, your newsreader is wrong. Oscar's post included the header:

Content-Type: text/plain; charset=ISO-8859-7

Your newsreader ignores the charset header and just assumes it is 
Latin-1. Since pi (π) in ISO-8859-7 is byte \xF0, your newsreader wrongly 
treats it as ð (LATIN SMALL LETTER ETH).



-- 
Steven



More information about the Python-list mailing list