GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — C indentation style (was RE: [Python-Dev] Re: [Patches] [Patch #102813] _cursesmodule: Add panel support)

C indentation style (was RE: [Python-Dev] Re: [Patches] [Patch #102813] _cursesmodule: Add panel support)

Tim Peters [email protected]
Fri, 22 Dec 2000 14:31:07 -0500

  • Previous message: [Python-Dev] Re: [Patches] [Patch #102813] _cursesmodule: Add panel support
  • Next message: C indentation style (was RE: [Python-Dev] Re: [Patches] [Patch #102813] _cursesmodule: Add panel support)
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

[Thomas Wouters]
>>   * Guido-style:  8-column hard-tab indents.
>>   * New style:  4-column space-only indents.
>
> Hm, I must have missed this... Is 'new style' the preferred style, as
> its name suggests, or is Guido mounting a rebellion to adhere to the
> One True Style (or rather his own version of it, which just has
> the * in pointer type declarations wrong ? :)

Every time this comes up wrt C code,

1. Fred repeats that he thinks Guido caved in (but doesn't supply a
reference to anything saying so).

2. Guido repeats that he prefers old-style (but in a wishy-washy way that
leaves it uncertain (*)).

3. Fredrik and/or I repeat a request for a BDFL Pronouncement.

4. And there the thread ends.

It's *very* hard to find this history in the Python-Dev archives because
these threads always have subject lines like this one originally had ("RE:
[Python-Dev] Re: [Patches] [Patch #102813] _cursesmodule: Add panel
support").

Fred already did the #1 bit in this thread.

You can consider this msg the repeat of #3.

Since Guido is out of town, we can skip #2 and go straight to #4 early
<wink>.


(*) Two examples of #2 from this year:

Subject: Re: [Python-Dev] Re: [Python-checkins] CVS: python/dist/src/
Modules mmapmodule.c,2.1,2.2
From: Guido van Rossum <[email protected]>
Date: Fri, 31 Mar 2000 07:10:45 -0500
> Can we change the 8-space-tab rule for all new C code that goes in?  I
> know that we can't practically change existing code right now, but for
> new C code, I propose we use no tab characters, and we use a 4-space
> block indentation.

Actually, this one was formatted for 8-space indents but using 4-space
tabs, so in my editor it looked like 16-space indents!

Given that we don't want to change existing code, I'd prefer to stick
with 1-tab 8-space indents.



Subject: Re: [Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Modules
linuxaudiodev.c,2.2,2.3
From: Guido van Rossum <[email protected]>
Date: Sat, 08 Jul 2000 09:39:51 -0500

> Aren't tabs preferred as C-source indents, instead of 4-spaces ? At
> least, that's what I see in Python/*.c and Object/*.c, but I only
> vaguely recall it from the style document...

Yes, you're right.




  • Previous message: [Python-Dev] Re: [Patches] [Patch #102813] _cursesmodule: Add panel support
  • Next message: C indentation style (was RE: [Python-Dev] Re: [Patches] [Patch #102813] _cursesmodule: Add panel support)
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.