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


Groups > comp.lang.python > #82035 > unrolled thread

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

Started byNed Batchelder <ned@nedbatchelder.com>
First post2014-12-05 22:34 -0500
Last post2014-12-05 22:34 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Tabs for indentation & Spaces for alignment in Python 3? Ned Batchelder <ned@nedbatchelder.com> - 2014-12-05 22:34 -0500

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

FromNed Batchelder <ned@nedbatchelder.com>
Date2014-12-05 22:34 -0500
SubjectRe: Tabs for indentation & Spaces for alignment in Python 3?
Message-ID<mailman.16651.1417836850.18130.python-list@python.org>
On 12/5/14 10:04 PM, Michael Torrie wrote:
> On 12/05/2014 07:31 PM, Ned Batchelder wrote:
>> This is a perfect example!  The code (with tabs as >--- and leading
>> spaces as .) is:
>>
>>    >-------if (!list_empty(pending))
>>    >------->-------ret = list_first_entry(pending, struct async_entry,
>>    >------->------->------->-------.......domain_list)->cookie;
>>
>> Now, display it in your editor with tabs set to four spaces:
>>
>>    >---if (!list_empty(pending))
>>    >--->---ret = list_first_entry(pending, struct async_entry,
>>    >--->--->--->---.......domain_list)->cookie;
>
> However, a conscientious programmer knows that tabs could be arbitrarily
> sized, so he would never do that.

The Linux kernel style guide makes clear: tabs are not arbitrarily 
sized. In the Linux kernel, they are eight spaces.

-- 
Ned Batchelder, http://nedbatchelder.com

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web