Striving for PEP-8 compliance

Grant Edwards invalid at invalid.invalid
Sun Apr 11 09:57:42 EDT 2010


On 2010-04-11, Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand> wrote:

> The problem isn?t that it?s ?incorrectly? indented, it?s two
> different pieces of code (correctly) indented according to two
> different conventions, and how you reconcile them without introducing
> logic errors into the code.

I've never run into that problem, but it shold be simple enough to do
that in an automated way as well.  Don't reindent and pindent work as
advertised?

>> In a brace delimited language it's not possible to write a program to
>> correctly place braces in an "incorrectly braced" program.

> But with braces it?s easy enough to reconcile different indentation 
> conventions without introducing logic errors into the code.

Reconciling indention in an indention-delimited language doesn't
correspond to reconciling indentation in a brace-delimited language,
so comparing them doesn't really make sense.

-- 
Grant




More information about the Python-list mailing list