Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74146
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'output': 0.05; 'ascii': 0.09; 'character,': 0.09; 'dan': 0.09; 'interpreted': 0.09; 'latter': 0.09; 'makefile': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '"control"': 0.16; 'being,': 0.16; 'finney': 0.16; 'irrevocable': 0.16; 'it;': 0.16; 'of)': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'scare': 0.16; 'semantically': 0.16; 'semantics': 0.16; 'tab': 0.16; 'wrote:': 0.18; 'header :User-Agent:1': 0.23; 'mon,': 0.24; 'header:X-Complaints-To:1': 0.27; 'idea': 0.28; 'michael': 0.29; 'character': 0.29; 'generally': 0.29; "doesn't": 0.30; 'characters': 0.30; 'lines': 0.31; 'usually': 0.31; '(although': 0.31; 'breaking': 0.31; 'writes:': 0.31; 'text': 0.33; 'beginning': 0.33; "can't": 0.35; 'display': 0.35; 'something': 0.35; 'case,': 0.35; 'there': 0.35; 'sequence': 0.36; 'effort': 0.37; 'list': 0.37; 'easily': 0.37; 'being': 0.38; 'ben': 0.38; 'feed': 0.38; 'to:addr:python-list': 0.38; 'short': 0.38; 'bad': 0.39; 'itself': 0.39; 'to:addr:python.org': 0.39; 'changed': 0.39; 'mailing': 0.39; 'received:org': 0.40; 'space': 0.40; 'even': 0.60; 'skip:u 10': 0.60; 'most': 0.60; 'such': 0.63; 'different': 0.65; 'default': 0.69; 'jul': 0.74; '\xe2\x80\x93': 0.77; 'avoids': 0.84; 'characters,': 0.84; 'it\xe2\x80\x99s': 0.84; 'received:125': 0.84; 'visually': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Ben Finney <ben@benfinney.id.au> |
| Subject | Re: PEP8 and 4 spaces |
| Date | Tue, 08 Jul 2014 11:22:25 +1000 |
| References | <53B59358.2040404@tobiah.org> <CAGGBd_rOg+EX1OxryW9-6+2b6yqzzKL9xN1K7+TPSP77tJz=bQ@mail.gmail.com> <mailman.11567.1404694875.18130.python-list@python.org> <lpdbjc$qf7$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | jigong.madmonks.org |
| X-Public-Key-ID | 0xAC128405 |
| X-Public-Key-Fingerprint | 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 |
| X-Public-Key-URL | http://www.benfinney.id.au/contact/bfinney-pubkey.asc |
| X-Post-From | Ben Finney <bignose+hates-spam@benfinney.id.au> |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
| Cancel-Lock | sha1:+906sdVACIAhZELLTyy74R7RyYc= |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11614.1404782560.18130.python-list@python.org> (permalink) |
| Lines | 44 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1404782560 news.xs4all.nl 2886 [2001:888:2000:d::a6]:60167 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:74146 |
Show key headers only | View raw
Dan Sommers <dan@tombstonezero.net> writes: > On Mon, 07 Jul 2014 11:00:59 +1000, Ben Finney wrote: > > > […] a poor design decision (a line beginning with U+0020 SPACE is > > semantically different from a line beginning with U+0009 CHARACTER > > TABULATION) can be irrevocable – the syntax can't be changed now, > > without breaking compatibility for countless makefiles out there > > already – and cause endless confusion and wasted effort dealing with > > it. > > When makefile syntax came into being, there were ASCII TAB characters, > with a value of 9, and ASCII SPC characters, with a value of 32 (and > there may not even have been those). A group of (a particular amount of) U+0020 characters is visually indistinguishable from a U+0009 character, when the default semantics are applied to each. > The former is a "control" character, which has specific semantics > associated with it; the latter is a "printable" character, which is > usually printed and interpreted as itself (although in this particular > case, the printed representation is hard to see on most output > devices). And those specific semantics make the display of those characters easily confused. That is why it's generally a bad idea to use U+0009 in text edited by humans. > This mailing list doesn't seem to mind that lines beginning with ASCII > SPC characters are semantically different from lines beginning with > ASCII LF characters, although many detractors of Python seem unduly > fixated on it. The salient difference being that U+000A LINE FEED is easily visually distinguished from a short sequence of U+0020 SPACE characters. This avoids the confusion, and makes use of both together unproblematic. -- \ “Come on Milhouse, there’s no such thing as a soul! It’s just | `\ something they made up to scare kids, like the Boogie Man or | _o__) Michael Jackson.” —Bart, _The Simpsons_ | Ben Finney
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: PEP8 and 4 spaces Ben Finney <ben@benfinney.id.au> - 2014-07-07 11:00 +1000
Re: PEP8 and 4 spaces Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-07 02:28 +0000
Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-07 12:50 +1000
Re: PEP8 and 4 spaces Dan Sommers <dan@tombstonezero.net> - 2014-07-07 05:35 +0000
Re: PEP8 and 4 spaces Ben Finney <ben@benfinney.id.au> - 2014-07-08 11:22 +1000
Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-08 00:03 -0700
Re: PEP8 and 4 spaces Steven D'Aprano <steve@pearwood.info> - 2014-07-08 08:48 +0000
Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-08 19:05 +1000
Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-08 12:09 +0300
Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-08 20:28 +1000
Re: PEP8 and 4 spaces Marko Rauhamaa <marko@pacujo.net> - 2014-07-08 14:13 +0300
Re: PEP8 and 4 spaces Chris Angelico <rosuav@gmail.com> - 2014-07-08 21:37 +1000
Re: PEP8 and 4 spaces Ben Finney <ben@benfinney.id.au> - 2014-07-09 12:41 +1000
Re: PEP8 and 4 spaces wxjmfauth@gmail.com - 2014-07-09 01:19 -0700
csiph-web