Tabbing probs
Christian Tismer
tismer at stackless.com
Mon Mar 29 10:52:53 EST 2004
Michael wrote:
>
>> No, I think you don't get at the real problem:
>> People do use tabs which are 8 spaces, but they
>> want their code to be indented by steps of four.
>> This creates mixed tabbing, and that's what you
>> see way too often when reading foreign code.
>> You have to adjust your editor to *that* tabbing,
>> before editing the file, and then convert or
>> live with it.
>
>
> How would this create mixed tabbing unless sometimes they are using
> spaces as tabs and sometimes using tabs as tabs? Will stopping the use
> of tabs improve the situation or will that just mean that some people
> use four spaces for indention and some people use eight..
...
Once again:
They use tabs but they want to do 4 space indentation.
That means they use a tab when it fits, and 4 spaces when not...
def mixed_tabs():
....if blah: # this is 4 spaces
--------pass # this is one tab
--
Christian Tismer :^) <mailto:tismer at stackless.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
More information about the Python-list
mailing list