Indentation problem

Michael Chermside mcherm at destiny.com
Mon Mar 25 17:42:19 EST 2002


> Why I would like to put [end-of-block markers] in [the Python language]?
> 1/ Because it's almost impossible to paste python code with ident = n 
> spaces to another code with indent = m spaces
> This kind of examples occurs more and more and you can indent the code 
> by hand when it's 10 lines of codes, but not 1000 code lines.
> It prevents the re-use of code pieces.

Actually, copying and pasting 1000 lines of code prevents re-use of 
code. Even if it's just 10 lines that you're copying and pasting, I 
recommend trying to Refactor so that both places where the code is 
needed can share the same subroutine or helper class.

-- Michael Chermside





More information about the Python-list mailing list