Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96319
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| 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; 'position,': 0.04; 'subject:Python': 0.05; 'character,': 0.07; 'inserts': 0.07; 'cc:addr:python-list': 0.09; '*key*': 0.09; 'pixels': 0.09; 'switches': 0.09; 'tab': 0.09; 'python': 0.10; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'personally,': 0.16; 'reconfigure': 0.16; 'tabs': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'either.': 0.22; 'sep': 0.22; 'code,': 0.23; 'header:In-Reply-To:1': 0.24; 'command': 0.26; 'fri,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'sequence': 0.27; 'actual': 0.28; 'spaces': 0.29; 'character': 0.29; 'convert': 0.29; 'skip:_ 10': 0.32; 'good.': 0.32; 'though,': 0.32; 'shift': 0.33; 'file': 0.34; 'received:google.com': 0.35; 'next': 0.35; 'mix': 0.35; 'but': 0.36; 'visual': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; "won't": 0.38; 'care': 0.60; 'your': 0.60; "you'll": 0.61; 'safe': 0.63; 'between': 0.65; 'bothered': 0.66; 'choose': 0.68; 'chrisa': 0.84; 'moves': 0.84; 'to:none': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=gvHBTsE76i2ctFGknhj9AM6NHS7CanUSSIX/2WbBYno=; b=YB2CcwFHhzTcGxAV9CqFeOI6gm6z/0VsEPhyQpbQY8bq/+VLGz+qhRR+r6/ePL0RjL tVogWvWv4/pRIIgCi9ipYRE8wf7q88x6lgR7PJkw7hXgRd5fAhmSH2JHGEgLFCHgCtgX 704oExAOzo3Dhro3weufMsCgGZDYBqDxj2xKW28I7RVeBNKaOJHxz/At4V0xxfG0E9Hs H+MPtzWxO/VnHUYoTqyeSEn1hdX7Un93LTSgBIgIEdca71jq98/GUviPm2ZIYXtEJ24I Ue+G98rC2CcfMzbre3RcHxv6g7hGQ4J2I/zdFbc0RB/C+DETZZDUZiE0DkaaoMIHu3ml qBYA== |
| MIME-Version | 1.0 |
| X-Received | by 10.107.132.144 with SMTP id o16mr388960ioi.31.1441947576409; Thu, 10 Sep 2015 21:59:36 -0700 (PDT) |
| In-Reply-To | <87h9n1o9q4.fsf@elektro.pacujo.net> |
| References | <c3363$547e74fe$5419aafe$24179@news.ziggo.nl> <cd7b7ffa-a217-4b62-bad2-9095b33a2bb6@googlegroups.com> <mailman.344.1441931751.8327.python-list@python.org> <87h9n1o9q4.fsf@elektro.pacujo.net> |
| Date | Fri, 11 Sep 2015 14:59:36 +1000 |
| Subject | Re: Python handles globals badly. |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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.353.1441947579.8327.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1441947579 news.xs4all.nl 23800 [2001:888:2000:d::a6]:48352 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:96319 |
Show key headers only | View raw
On Fri, Sep 11, 2015 at 2:34 PM, Marko Rauhamaa <marko@pacujo.net> wrote: > etc. The TAB *key* is a command that makes emacs indent with a mix of > spaces and TABs. I don't care how you key them in. If your tab key moves you to the next position, that's good. If you convert a sequence of N spaces into a tab character, though, that's bad, because then your file ends up with a mix, and an inconsistent one. To make emacs safe for use with Python code, you'll need to reconfigure it so the tab key inserts either a tab character or spaces, but never switches between them. Personally, I like to use tab characters for indentation. You can choose how many pixels or ems or ens or spaces the actual visual shift is, and if I disagree with your choice, it won't affect anything. As long as tabs are used _exclusively_, Python won't be bothered by it either. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Python handles globals badly. tdev@freenet.de - 2015-09-10 15:25 -0700
Re: Python handles globals badly. Emile van Sebille <emile@fenx.com> - 2015-09-10 15:40 -0700
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-10 18:35 -0600
Re: Python handles globals badly. Marko Rauhamaa <marko@pacujo.net> - 2015-09-11 07:34 +0300
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-11 14:59 +1000
Re: Python handles globals badly. Marko Rauhamaa <marko@pacujo.net> - 2015-09-11 08:15 +0300
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-11 15:25 +1000
Re: Python handles globals badly. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-12 03:43 +0100
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-10 23:07 -0600
Re: Python handles globals badly. Marko Rauhamaa <marko@pacujo.net> - 2015-09-11 08:27 +0300
Re: Python handles globals badly. Rustom Mody <rustompmody@gmail.com> - 2015-09-11 00:39 -0700
Re: Python handles globals badly. Steven D'Aprano <steve@pearwood.info> - 2015-09-11 18:42 +1000
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-11 19:16 +1000
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-11 09:03 -0600
Re: Python handles globals badly. Steven D'Aprano <steve@pearwood.info> - 2015-09-12 17:00 +1000
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-12 01:15 +1000
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-11 09:27 -0600
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-12 01:44 +1000
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-11 09:49 -0600
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-12 01:55 +1000
Re: Python handles globals badly. random832@fastmail.us - 2015-09-11 11:57 -0400
Re: Python handles globals badly. Rustom Mody <rustompmody@gmail.com> - 2015-09-11 09:08 -0700
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-12 02:04 +1000
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-11 10:27 -0600
Re: Python handles globals badly. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-12 03:51 +0100
Re: Python handles globals badly. MRAB <python@mrabarnett.plus.com> - 2015-09-11 02:17 +0100
Re: Python handles globals badly. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-09-12 03:27 +0100
csiph-web