Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'subject:Python': 0.06; 'cc:addr:python-list': 0.11; 'python': 0.11; 'books': 0.15; 'brackets,': 0.16; 'cc:name:python list': 0.16; 'wrote:': 0.18; 'examples': 0.20; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'important.': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'controlled': 0.31; 'this.': 0.32; 'up.': 0.33; 'totally': 0.33; 'received:google.com': 0.35; 'there': 0.35; '14,': 0.36; 'url:org': 0.36; 'should': 0.36; 'pm,': 0.38; '(from': 0.39; 'extremely': 0.39; 'pdf': 0.39; 'name': 0.63; 'to:addr:gmail.com': 0.65; 'subject:there': 0.68 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:to :cc:content-type:content-transfer-encoding; bh=DoN6Z2OIyDSOclbERhuVyW1UGvNF1t31geNbdtzWFa0=; b=pdcIGw6vY9KARkQQUhBxTFqurY34vadGHO7hjnd86XHw8UCvwVNdutmRpTezllu8lX Tfsver6CcOu/ZOFg5Oe1iuCPkODCTmYRv0venEarfbCH5+7zpULX4UZwpKKgabbvoabF Eg4lzeR/YRl/nLKeNhsBzdf5vkUlbB404ovj2L3fDf80nVdLcMoUSIV4D0dYojLsDUo1 /wJgmqn7gFzclEm725B6VoqtwlnK2IggHtuGZtcE2f/78fOGji3KQ4goTmaysVlmRlRI zSsdanPZETvANp96PP/4ap9mhDGGFTlT0uTRsaWHnGEobcB9Ver/lgadLJQYcekYwRMu 6xfA== MIME-Version: 1.0 X-Received: by 10.152.87.98 with SMTP id w2mr9020490laz.27.1413340695210; Tue, 14 Oct 2014 19:38:15 -0700 (PDT) In-Reply-To: <9a0c67be-de3a-4770-bf06-e158783bfff0@googlegroups.com> References: <9a0c67be-de3a-4770-bf06-e158783bfff0@googlegroups.com> Date: Tue, 14 Oct 2014 19:38:15 -0700 Subject: Re: Is there an easy way to control indents in Python From: Dan Stromberg To: ryguy7272 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Python List X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413340702 news.xs4all.nl 2845 [2001:888:2000:d::a6]:58534 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3864 X-Received-Body-CRC: 3626982788 Xref: csiph.com comp.lang.python:79129 On Tue, Oct 14, 2014 at 7:13 PM, ryguy7272 wrote: > I'm just learning Python. It seems like indents are EXTREMELY important.= I guess, since there are no brackets, everything is controlled by indents= . Well, I'm reading a couple books on Python now, and in almost all of the= examples they don't have proper indents, so when I copy/paste the code (fr= om the PDF to the IDE) the indents are totally screwed up. I'm thinking th= at there should be some control, or setting, for this. I hope. :) Perhaps if you share a screenshot of your PDF and the name of your PDF viewer, we can help you more. Here's a URL about Python and Whitespace: http://stromberg.dnsalias.org/~strombrg/significant-whitespace.html