Python's 8-bit cleanness deprecated?
Roman Suzi
rnd at onego.ru
Wed Feb 5 00:28:48 EST 2003
On Wed, 5 Feb 2003, Dale Strickland-Clark wrote:
>Paul Rubin <phr-n2003b at NOSPAMnightsong.com> wrote:
>
>>Brian Quinlan <brian at sweetapp.com> writes:
>>> Just add:
>>> # -*- coding: Latin-1 -*-
>>>
>>> to the top of your source files and you will be fine.
>>
>>What is this nonsense? The interpreter is reading comment text now?
>>Yucch!
>
>Absolutely. And what if you get the syntax wrong? How close to correct
>does it have to be before you get told you've got it wrong?
>
>Is everything bracketed by -*- on line 1-2 now parsed?
>
>Parsing comments is a very poor solution.
I do not necessary agree. Comments are meta-information. And anyway
first line is
#!/usr/bin/python
But having ASCII as default encoding is completely different matter.
Sincerely yours, Roman Suzi
--
rnd at onego.ru =\= My AI powered by Linux RedHat 7.3
More information about the Python-list
mailing list