> Won't the following rules work when pasting complete Python statements
> and complete lines, after other lines in an editor:
> 
> lets call the line after which the block is to be pasted the paste
> line, and the original indent of the first line of the copied block to
> be pasted the copy indent.
> 
> If the paste line ends in a colon then the copy indent must be greater
> than the paste line indent, or the copy block should be re-indented on
> pasting to make it so.
> If the paste line does not end in a colon then the copy block indent
> should be equal too or less than the paste line indent. If this is not
> the case then the user should be asked wether to re-indent the copy
> block to be equal to, or de-dented w.r.t. the paste line indent prior
> to pasting.


Could be done that way - but is it a killer feature? I doubt it, but 
maybe you convince somebody to implement it.

Yet it certainly doesn't justify a wikipedia edit - the FAQ entry is 
right, and there is no way of auto-indenting python code that for some 
reason suffered from indention mix-up.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to