Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16727 > unrolled thread
| Started by | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| First post | 2011-12-06 13:22 +0000 |
| Last post | 2011-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.
Re: whitespace cleanup Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-12-06 13:22 +0000
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| Date | 2011-12-06 13:22 +0000 |
| Subject | Re: 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.
Back to top | Article view | comp.lang.python
csiph-web