Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82041

Re: Tabs for indentation & Spaces for alignment in Python 3?

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: Tabs for indentation & Spaces for alignment in Python 3?
Date 2014-12-06 18:57 +0200
Organization A noiseless patient Spider
Message-ID <87d27wlnr4.fsf@elektro.pacujo.net> (permalink)
References <CAFaCOgzqxcvuKBrcSkK+DRm-5pHuh6QCXi1PKG4LHGqdBjLF_A@mail.gmail.com> <m5tpqg$iqi$1@ger.gmane.org> <mailman.16650.1417835105.18130.python-list@python.org> <87mw71maqu.fsf@elektro.pacujo.net> <mailman.16653.1417884132.18130.python-list@python.org>

Show all headers | View raw


Michael Torrie <torriem@gmail.com>:

> What dilemma?  Do you mean you can avoid the drama of tabs by going all
> spaces?  Of course in Python this is the recommended course.
>
> But that's typically not what I, or most people, use in C or C++.

"Most people"? Hm. I don't know most people.

Anyway. Who cares about "most people"?

> And one of the OP's points is that by using tabs for indent, and
> spaces for alignment, you can have the best of both worlds.

I certainly doesn't sound that way.

> Programmers can set their tab size to anything they want, and it still
> looks good

That's anything but true. I see zigzaggy diffs all the time.


Marko

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Tabs for indentation & Spaces for alignment in Python 3? Michael Torrie <torriem@gmail.com> - 2014-12-05 20:04 -0700
  Re: Tabs for indentation & Spaces for alignment in Python 3? Marko Rauhamaa <marko@pacujo.net> - 2014-12-06 10:40 +0200
    Re: Tabs for indentation & Spaces for alignment in Python 3? Michael Torrie <torriem@gmail.com> - 2014-12-06 09:41 -0700
      Re: Tabs for indentation & Spaces for alignment in Python 3? Marko Rauhamaa <marko@pacujo.net> - 2014-12-06 18:57 +0200
        Re: Tabs for indentation & Spaces for alignment in Python 3? Michael Torrie <torriem@gmail.com> - 2014-12-06 10:26 -0700
          Re: Tabs for indentation & Spaces for alignment in Python 3? Marko Rauhamaa <marko@pacujo.net> - 2014-12-06 22:04 +0200
    Re: Tabs for indentation & Spaces for alignment in Python 3? Chris Angelico <rosuav@gmail.com> - 2014-12-07 03:46 +1100

csiph-web