pretty print, tidy, reindent.py

K

kpp9c

What ever happened to reindent.py ? This used to be part of the
distribution. Does it still work with modern versions of python?

A lot of the code i drag off here (even if i use "show original"!)
comes out all messed up and i end up having to clean a lot of it up. I
wonder if there is a reformatter/pretty printer that like perl tidy
that might help. I see i have tabnanny, but that only complains... i
want something that fixes automagically.

-kp8--
 
R

Ron Adam

kpp9c said:
What ever happened to reindent.py ? This used to be part of the
distribution. Does it still work with modern versions of python?

A lot of the code i drag off here (even if i use "show original"!)
comes out all messed up and i end up having to clean a lot of it up. I
wonder if there is a reformatter/pretty printer that like perl tidy
that might help. I see i have tabnanny, but that only complains... i
want something that fixes automagically.

-kp8--

What you're looking for is in "Python24/Tools/Scripts" directory.

Cheers,
Ron
 
K

kpp9c

thanks. i didn't realize just how bare bones that mac os x install of
python is. I just grabbed it from the source.

cheers,

-kp-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,290
Messages
2,571,453
Members
48,129
Latest member
DianneCarn

Latest Threads

Top