Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Koken 0.8.2
  • ContentBox 1.5.2
  • jQPlayer 0.5.2
  • SPOILER ALERT! 0.0.2
  • jQuery Mask Plugin 0.9.0
  • Easing Slider 2.1.2
  • Btapp.js 0.2.0
  • WiiFlash 0.4.5
  • Breeze.js 1.3.3
  • TinyMCE Templates 3.0.2
  • Home > Scripts > Snippets

    PythonTidy 1.20

    Download button


    Downloads: 425  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Chuck Rhode | More scripts
    pypi.python.org
    GPL - GNU General Public License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Python
    March 18th, 2010, 14:38 GMT [view history]
    C: \ Snippets

     Read user reviews (0)  Refer to a friend  Subscribe

    PythonTidy description

    This script cleans up, regularizes, and re-formats the text of Python scripts

    This script reads Python code from standard input and writes a revised version to standard output.

    Alternatively, it may be invoked with file names as arguments.

    Python scripts are usually good looking that no beautification is required.

    However, from time to time, it may be necessary to alter the style to conform to changing standards.

    This script converts programs in a consistent way. It abstracts the pretty presentation of the symbolic code from the process of writing it and getting it to work.

    This script assumes that the input Python code is well-formed and works to begin with. If all goes well, the output Python code will work, too.

    Of course, it is recommended and advised to test it fully to be sure.

    What's New in This Release: [ read full changelog ]

    · As a matter of style per PEP 308, parentheses are preferred around conditional expressions.
    · Give the bitwise invert operator the same precedence as unary plus and unary minus.
    · Index literal pool by type. (Use *repr*.)
    · Never append a trailing comma to starred or double-starred arguments.



    TAGS:

    beautify code | stylize source | source code readability | beautify | source | code

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM