Larry Wall's comment on python...
Greg Ewing
see_reply_address at something.invalid
Sun Sep 29 20:57:18 EDT 2002
Alan Daniels wrote:
> Unfortunately, that fails when one person writes their code with tabs
> set to 8, and another person reads the code with tabs set to 4. Code
> that was hand-aligned with a mix of tabs and spaces doesn't align
> anymore.
If you're trying to line up things on two lines
having different indentation levels, that's true.
So you don't do that -- you only try to line
things up at the same indentation level.
e.g.
<tab><tab>fooblarg(x, y,
<tab><tab> z)
Note the absence of tabs underneath the "fooblarg(".
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list