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?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: Tabs for indentation & Spaces for alignment in Python 3?
Date Sat, 06 Dec 2014 18:57:35 +0200
Organization A noiseless patient Spider
Lines 23
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>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="19630"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19R54ijVYhMvr2Ta8vnykN+"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:4WrFRPTfNqN1zzN8mqu1kTbSN0M= sha1:3bYDSKuIR7lwEh0cd5D2zCTRzo8=
Xref csiph.com comp.lang.python:82041

Show key headers only | 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