[Python-ideas] Suggestion: Integrate the script "pindent.py" as standard command for formatting pyhton code

Ronald Oussoren ronaldoussoren at mac.com
Fri May 27 13:28:51 CEST 2011


On 26 May, 2011, at 13:15, Serge Hulne wrote:
> 
> It is my feeling that without such a tool Python is inherently very vulnerable to glitches occurring at editing time:
> Copy / paste glitch that passes unnoticed, does not generate an exception but alters the logic of the program.
> Tab key inadvertently hit.
> Difficulty in assessing the target indentation level when a part of a bloc has to be pasted in a different part of the code. 
You seem to be arguing for the addition of block delimiters to the language (even if only in comments), you might want to try "from __future__ import braces".

Ronald

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110527/ea5738f5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20110527/ea5738f5/attachment.bin>


More information about the Python-ideas mailing list