Striving for PEP-8 compliance

Grant Edwards invalid at invalid.invalid
Sat Apr 10 02:36:03 CEST 2010


On 2010-04-09, Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand> wrote:
> In message <4bbf6eb8$0$1670$742ec2ed at news.sonic.net>, John Nagle wrote:
>
>> Lawrence D'Oliveiro wrote:
>>
>>> In message <mailman.1610.1270655932.23598.python-list at python.org>,
>>> Gabriel Genellina wrote:
>>> 
>>>> If you only reindent the code (without adding/removing lines) then you
>>>> can compare the compiled .pyc files (excluding the first 8 bytes that
>>>> contain a magic number and the source file timestamp). Remember that
>>>> code objects contain line number information.
>>> 
>>> Anybody who ever creates another indentation-controlled language should
>>> be beaten to death with a Guido van Rossum voodoo doll.
>> 
>>     No ...
>
> Yes, because otherwise you wouldn?t have stupid problems like the one
> which is preoccupying this thread: how to make sure indentation is
> consistent without introducing logic errors into the code.

Anybody who invents another brace-delimited language should be beaten.
You always end up with a big problem trying to make sure the braces
are consistent with the program logic.

-- 
Grant




More information about the Python-list mailing list