Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #16727 > unrolled thread

Re: whitespace cleanup

Started byAndrea Crotti <andrea.crotti.0@gmail.com>
First post2011-12-06 13:22 +0000
Last post2011-12-06 13:22 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: whitespace cleanup Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-12-06 13:22 +0000

#16727 — Re: whitespace cleanup

FromAndrea Crotti <andrea.crotti.0@gmail.com>
Date2011-12-06 13:22 +0000
SubjectRe: whitespace cleanup
Message-ID<mailman.3348.1323177732.27778.python-list@python.org>
So apparently PythonTidy uses the AST (the compiler module) to find out 
the problems,
and generates new nodes with a put method to write out the code with the 
fix.

An awful lot of code is needed to make it work apparently, not very neat.
Pep8 instead uses tokenize and regular expressions only, and the code
is much neater, not sure how is possible to make it fix things though.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web