Indent Python code, giving block-closing

Category: Python - Miscellaneous

This script contains a class and a main program that perform three related (though complimentary) formatting operations on Python programs. When called as "pindent -c", it takes a valid Python program as input and outputs a version augmented with block-closing comments. When called as "pindent -d", it assumes its input is a Python program with block-closing comments and outputs a commentless version. When called as "pindent -r" it assumes its input is a Python program with block-closing comments but with its indentation messed up, and outputs a properly indented version. Date: 20 April, 2012


Block-Closing Comments - Text Identation - Text Tool - Text - Identation - Tool

Homepage: http://www.java2s.com/

Developer: java2s.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This script contains a class and a main program that perform three related (though complimentary) formatting operations on Python programs.

developer Developer: java2s.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Indent text like email clients script helps you to manage the text identation.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


Advanced Fading Text allows you to display multiple messages within a single screen area.

developer Developer: jpowered.com
license License: Freeware
operating systems Operating System: All


The default command XMLwrite causes unnecessary line breakes or white spaces to be added to the XML file.

developer Developer: mathworks.com
license License: Freeware
operating systems Operating System: All


Alerttail executes actions when "some text" has been written to a file.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


PadPaper Editor is a simple text editor.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


jQuery Autocomplete Mod will autofill pre-populates text box as you type.

developer Developer: pengoworks.com
license License: Freeware
operating systems Operating System: All


Puzzlemaps is a software version of the Montessori Puzzle Maps activity.

developer Developer: files.rubyforge.vm.bytemark.co.uk
license License: Freeware
operating systems Operating System: All


CliServ is a modular web-based community to allow users access to their accounts over a web connection.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All