Re: how to format a python source file with tools?
- From: gil_johnson <x7-g5W_rt@xxxxxxxxxxxxx>
- Date: Mon, 30 Nov 2009 06:37:19 -0800 (PST)
On Nov 27, 9:58 am, "Diez B. Roggisch" <de...@xxxxxxxxxxxxx> wrote:
[...]
so i would like to have a tool to intelligently format the code for me
and make the code more beautiful
and automated.
This is not possible. Consider the following situation:
[...]
Both are semantically radically different, and only you know which one
is the right one.
Diez
I have to agree with Diez, there is no way to automate this. Some
human intervention is needed. What I would like is an editor that will
indicate what Python will consider a logical block (and sub-block, and
sub-sub-block, etc.)
It's complicated. I've tried to think of a way to do it, and have
gotten lost after a few changes of indentation.
Does anyone know of such a thing?
I miss curly braces with an editor that will highlight matching
parentheses, braces, etc.
Gil
.
- Follow-Ups:
- Re: how to format a python source file with tools?
- From: Falcolas
- Re: how to format a python source file with tools?
- References:
- how to format a python source file with tools?
- From: 李白,字一日
- Re: how to format a python source file with tools?
- From: Ben Finney
- Re: how to format a python source file with tools?
- From: 李白,字一日
- Re: how to format a python source file with tools?
- From: Diez B. Roggisch
- how to format a python source file with tools?
- Prev by Date: Re: Imitating "tail -f"
- Next by Date: Re: * for generic unpacking and not just for arguments?
- Previous by thread: Re: how to format a python source file with tools?
- Next by thread: Re: how to format a python source file with tools?
- Index(es):
Relevant Pages
|