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


Groups > comp.lang.python > #73959

Re: PEP8 and 4 spaces

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: PEP8 and 4 spaces
Date 2014-07-04 15:57 +0100
References (1 earlier) <lp49co$3i6$1@reader1.panix.com> <mailman.11468.1404416479.18130.python-list@python.org> <XQjtv.45561$Oh3.35396@fx02.iad> <mailman.11473.1404429347.18130.python-list@python.org> <lp6dn3$8f0$1@reader1.panix.com>
Newsgroups comp.lang.python
Message-ID <mailman.11493.1404485848.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 04/07/2014 15:28, Grant Edwards wrote:
> On 2014-07-03, Emile van Sebille <emile@fenx.com> wrote:
>> On 7/3/2014 2:23 PM, Tobiah wrote:
>>> I think your suggestion of having GIT handle the transformations
>>> is the way we'll go.  nothing to quibble or worry about.  Well put
>>> spaces in the repository since it still seems to be the community's
>>> preference and I'll convert to tabs with GIT on the fly.  Problem
>>> solved.
>>
>> Just watch out for mixed tabs and spaces in the same file -- a tab
>> counts as eight spaces and can be used interchangeably in python2.
>
> Definitely. Indenting with tabs vs. spaces is mostly personal
> preference (though spaces are better!). But, mixing the two is right
> out, and should be stomped on hard.
>

Yet another reason to switch to Python 3.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

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


Thread

PEP8 and 4 spaces Tobiah <tshepard@rcsreg.com> - 2014-07-03 10:31 -0700
  Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-03 13:46 -0400
  Re: PEP8 and 4 spaces Grant Edwards <invalid@invalid.invalid> - 2014-07-03 19:02 +0000
    Re: PEP8 and 4 spaces Tim Chase <python.list@tim.thechases.com> - 2014-07-03 14:40 -0500
      Re: PEP8 and 4 spaces Tobiah <toby@tobiah.org> - 2014-07-03 14:23 -0700
        Re: PEP8 and 4 spaces Emile van Sebille <emile@fenx.com> - 2014-07-03 16:15 -0700
          Re: PEP8 and 4 spaces Grant Edwards <invalid@invalid.invalid> - 2014-07-04 14:28 +0000
            Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-04 17:54 +0300
              Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-05 00:58 +1000
              Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 16:00 +0100
                Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-04 18:12 +0300
              Re: PEP8 and 4 spaces Simon Ward <simon+python@bleah.co.uk> - 2014-07-04 19:52 +0100
              Re: PEP8 and 4 spaces Michael Torrie <torriem@gmail.com> - 2014-07-05 16:03 -0600
              Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-05 23:50 +0100
            Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 15:57 +0100
            Re: PEP8 and 4 spaces Emile van Sebille <emile@fenx.com> - 2014-07-04 08:57 -0700
            Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 17:06 +0100
              Re: PEP8 and 4 spaces Maciej Dziardziel <fiedzia@gmail.com> - 2014-07-04 09:19 -0700
                Re: PEP8 and 4 spaces Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-04 16:56 +0000
    Re: PEP8 and 4 spaces Tobiah <toby@tobiah.org> - 2014-07-03 14:28 -0700
  Re: PEP8 and 4 spaces Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-04 01:02 +0000
    Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-04 11:19 +1000
    Re: PEP8 and 4 spaces Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-04 18:35 +1200
      Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-04 01:47 -0700
        Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-04 12:21 +0300
          Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-04 03:10 -0700
      Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-04 09:47 -0400
        Re: PEP8 and 4 spaces Mihamina Rakotomandimby <mihamina.rakotomandimby@rktmb.org> - 2014-07-04 16:59 +0300
        Re: PEP8 and 4 spaces Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-04 16:12 +0100
        Re: PEP8 and 4 spaces George Silva <georger.silva@gmail.com> - 2014-07-04 12:14 -0300
          Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-04 12:31 -0400
            Re: PEP8 and 4 spaces George Silva <georger.silva@gmail.com> - 2014-07-04 13:37 -0300
        Re: PEP8 and 4 spaces Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-05 11:14 +1200
  Re: PEP8 and 4 spaces Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-04 19:00 -0700
    Re: PEP8 and 4 spaces Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-04 19:47 -0700
      Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-05 13:03 +1000
      Re: PEP8 and 4 spaces Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-07-05 20:57 +1200
        Re: PEP8 and 4 spaces alister <alister.nospam.ware@ntlworld.com> - 2014-07-05 09:48 +0000
      OT: Flashlights [was Re: PEP8 and 4 spaces] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-05 10:15 +0000
        Re: OT: Flashlights [was Re: PEP8 and 4 spaces] Rick Johnson <rantingrickjohnson@gmail.com> - 2014-07-06 08:41 -0700
          Re: OT: Flashlights [was Re: PEP8 and 4 spaces] Chris Angelico <rosuav@gmail.com> - 2014-07-07 08:25 +1000
    Re: PEP8 and 4 spaces Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-05 12:57 -0600
      Re: PEP8 and 4 spaces Roy Smith <roy@panix.com> - 2014-07-05 15:07 -0400
    Re: PEP8 and 4 spaces Robert Kern <robert.kern@gmail.com> - 2014-07-05 21:07 +0100
    Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-06 09:27 +1000
      Re: PEP8 and 4 spaces Dan Sommers <dan@tombstonezero.net> - 2014-07-06 01:18 +0000
        Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-06 11:28 +1000

csiph-web