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


Groups > comp.lang.python > #20851

Re: Please verify!!

Date 2012-02-24 21:36 -0500
From Dave Angel <d@davea.name>
Subject Re: Please verify!!
References (4 earlier) <mailman.117.1330075122.3037.python-list@python.org> <4f47808b$0$29989$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmq8B4gHL1QNcYaQnWnHCZ9bAKcpB6SZadO0AwG6vRHdgw@mail.gmail.com> <ji9b7f$8mb$1@dough.gmane.org> <CAPTjJmq+Bs5kd=u9=zFCHWjgxF-+MaHgQgL30-Qz6eX32kOsvA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.152.1330137442.3037.python-list@python.org> (permalink)

Show all headers | View raw


On 02/24/2012 08:25 PM, Chris Angelico wrote:
> On Sat, Feb 25, 2012 at 11:49 AM, Mark Lawrence<breamoreboy@yahoo.co.uk>  wrote:
>> Oo, thou sinner, fancy violating PEP 8 and standardising on tabs.
> PEP 8 applies only to Python code, our standard is across all our
> languages :) But yes, I'm a horrible sinner and I like tabs. They
> separate the display (do you want tabs to show as four-space indent,
> two-centimeter indent, or fifty-pixel indent?) from the structure
> (this line is indented two levels). Spaces merge those.
>
> ChrisA

If tabs were ever implemented consistently and reasonably in both an 
editor and a matching language, then I'd consider leaving tabs in the 
file.  But to me, they're just a crude way to compress the file, and the 
space they save is no longer worth the pain they cause  (I came to this 
conclusion 30 years ago, and have re-evaluated it dozens of times as new 
editors and new languages changed the rules.  At that time, I had one of 
my developers write an editor (shipped with our MSDOS system, instead of 
Edlin) that implemented it.)

Some time when i have a lot more time, I'll state one of (many possible) 
the ways that tabs could be made acceptable in a limited environment.  
Almost 40 years ago, I wrote an editor and assembler whose file format 
used a separation character between fields.  I used A0 because our 
screens at the time ignored the high bit, so a file was sort-of readable 
right out of the box.  And the way that the developer jumped between 
fields was the semi-colon key, of course, since that's the position of 
the skip key in the keypunch we were replacing.

However, I don't intend to foist my opinions on others, just to state 
them as opinions.  At the office, we use special comment fields at 
end-of-file to tell Emacs how to deal with a mixture of tabs and 
spaces.  Code written by a dozen people over a dozen years, and nobody 
wanted to enforce a conversion to something common.




-- 

DaveA

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


Thread

Please verify!! Manish Sharma <manish2aug@gmail.com> - 2012-02-23 14:13 -0800
  Re: Please verify!! Ben <bungiman@gmail.com> - 2012-02-23 14:29 -0800
  Re: Please verify!! Dave Angel <d@davea.name> - 2012-02-23 17:43 -0500
  Re: Please verify!! Joshua Miller <milleja46@gmail.com> - 2012-02-23 20:57 -0500
  Re: Please verify!! Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-23 21:45 -0600
    Re: Please verify!! Ben Finney <ben+python@benfinney.id.au> - 2012-02-24 19:32 +1100
      Re: Please verify!! Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-24 03:18 -0600
        Re: Please verify!! Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-24 12:20 +0000
          Re: Please verify!! Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-24 07:20 -0600
          Re: Please verify!! Chris Angelico <rosuav@gmail.com> - 2012-02-25 07:41 +1100
          Re: Please verify!! Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-02-25 00:49 +0000
          Re: Please verify!! Chris Angelico <rosuav@gmail.com> - 2012-02-25 12:25 +1100
          Re: Please verify!! Dave Angel <d@davea.name> - 2012-02-24 21:36 -0500
    Re: Please verify!! Duncan Booth <duncan.booth@invalid.invalid> - 2012-02-24 11:21 +0000
      Re: Please verify!! Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-24 05:36 -0600
  Re: Please verify!! Andrew Berg <bahamutzero8825@gmail.com> - 2012-02-24 01:26 -0600
  Re: Please verify!! Jugurtha Hadjar <jugurtha.hadjar@gmail.com> - 2012-02-24 12:10 +0100

csiph-web