Striving for PEP-8 compliance

Hans Mulder hansmu at xs4all.nl
Wed Apr 14 22:10:28 CEST 2010


Grant Edwards wrote:
> 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.

Anybody who invents another programming language should be beaten.
You always end up with a big problem trying to make sure the program
logic is consistent with the customers's needs :-(

-- HansM




More information about the Python-list mailing list