Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'causing': 0.04; 'syntax': 0.04; 'preference': 0.07; "subject:' ": 0.07; 'advice.': 0.09; 'blue': 0.09; 'feature,': 0.09; 'highlighting': 0.09; 'shaw': 0.09; 'spaces': 0.09; 'subject:instance': 0.09; 'cc:addr:python-list': 0.11; 'easier.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'marker': 0.16; 'next.': 0.16; 'wrote:': 0.18; 'settings': 0.22; 'cc:addr:python.org': 0.22; 'section.': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'gives': 0.31; 'indentation': 0.31; 'text': 0.33; 'sense': 0.34; 'problem.': 0.35; 'editor': 0.35; 'received:google.com': 0.35; 'there': 0.35; "i'll": 0.36; 'thank': 0.38; 'changed': 0.39; 'subject:Can': 0.60; 'mentioned': 0.61; "you'll": 0.62; 'kind': 0.63; 'personal': 0.63; 'pick': 0.64; 'to:none': 0.92 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=a2fZJb6L81eB290ZBX1Tk4t0H425J7I+1DK2/SH9bL4=; b=U56n6kTYQv+ifRuxbkaTZCKZtXPjnWKELrDfd3Y4/4k720CRikLNRtHz1uypbxfuxV sya8Y5zv4OYmK2SISKfw9rs0q1YOnLChnRLEbvHaBf46KIfboGDYlDAfuT0jeCBgiCs/ LXxtVdTPmvNdv2smecI+9RyW589KJF5BpgIzCjD62+8QR7TBDVNnY52N8tnWdpCXngvu HnegVH06nfz+wAQs4A2VzEQ0yKq95ebmfJDwtoow8fuwnQt7yLToLiqZB2dU3cV+EAxp +42Kf2/6KR7xXBBDwUhdFG88AfbusNhRZsP6wykj4+O/SdUcsq5N2HNISXrBtDbbDTbg JgEw== MIME-Version: 1.0 X-Received: by 10.220.190.197 with SMTP id dj5mr10055161vcb.19.1400440213132; Sun, 18 May 2014 12:10:13 -0700 (PDT) In-Reply-To: References: Date: Mon, 19 May 2014 05:10:13 +1000 Subject: Re: Can't figure out 'instance has no attribute' error From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 1400440221 news.xs4all.nl 2882 [2001:888:2000:d::a6]:47237 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71736 On Mon, May 19, 2014 at 5:02 AM, wrote: > Thank you very much Ned, Rodri and Gary. I changed the settings of gedit text editor as mentioned in the Zed Shaw tutorial. I think this is causing me the problem. I'll follow your advice. > I find that there are better editors than gedit. My personal preference is SciTE; one of its syntax highlighting features is a nice big warning if the indentation doesn't make sense from one line to the next. So if you switch from spaces to tabs, or mismatch indents, or anything, it gives you this blue marker right through the faulty indented section. Pick an editor with that kind of feature, and you'll find your job way easier. ChrisA