On Feb 3, 4:08 am, Markus Gritsch <[email protected]> wrote:

> Now, now.  I did not know PythonTidy before, but to be fair one has to
> admit, that it does a remarkable job.

Thank you for your kind words.  I noticed a link to this discussion in
the Web-access log for my site.  I am not familiar with *web2py*, but
I am the author of *PythonTidy*.  If any of you need tweaks, let me
know.  I've had such requests and tried similar things before.

Admittedly, *PythonTidy* is rough on commentary in the code.  It has
global variable settings that deal with rendering text.  Most users
want comments wrapped to their ideal margins except for tabular info,
which they want left alone.  *PythonTidy* does not attempt to make
this distinction, however.

Doc strings are identified by the Python parser.  Inline and
interstitial remarks are not.  *PythonTidy* recovers remarks and line
numbers from the tokenizer module, but the line numbers that the
parser module reports are only approximate, so matching remarks back
to the line where they occurred in the original code is slightly
stochastic.  *PythonTidy* can only guess whether the original remark
was inline or interstitial.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to