Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #28587
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!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.026 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'classes.': 0.07; 'subject:help': 0.07; 'python': 0.09; 'sep': 0.09; 'subject:error': 0.11; 'subject:not': 0.11; 'chris,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'thu,': 0.17; 'java': 0.21; 'not,': 0.21; 'received:209.85.214.174': 0.21; 'flexibility': 0.23; 'script': 0.24; 'header:In-Reply-To:1': 0.25; 'subject:please': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'class': 0.29; "i'm": 0.29; 'maybe': 0.29; 'classes': 0.30; 'sense': 0.31; 'code': 0.31; 'goes': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'whatever': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'gives': 0.39; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'subject:Need': 0.61; 'necessarily': 0.63; 'more': 0.63; 'stated': 0.69; 'subject::': 0.83; 'subject:this': 0.84; 'intentions': 0.84; 'drink': 0.93 |
| 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 :content-type; bh=olQq1XB0Y8yGKHIB7o01xvnzqV+jL4FGojpRk9mjuXg=; b=IbdwZdXFEPuLdJaq/nir1qTkSszlHv8/l70XS/B29nNUogCXZPz4IB79hwkcfMjeQR /c5eFBbhwTwRQLU1bA64TCFNt3mm4VqDT7y6FaNdU5Gcr7+iJRHCYEG5K8TCKncB6uro 5b0uD088rDT0byGwPpBIbnBeG0A329WxEyjL7LQvdId1ybOTmW5N6ZE+dEFfuMiyJY9V WZXUbgoVz9y2VSWP4H1XD9sGegMf2fMfkGwr2ZkCEfh+8ycoOK03dD2rVwQkOOJGoJRw 2vUXb7rz48AXVDEy+j8MY+ztjwFxnOIVBf7fEGV8ohgm4v/2fjpcSjg3XoA5m+R2ElKv sdGA== |
| MIME-Version | 1.0 |
| In-Reply-To | <1c670c04-4367-4518-aa50-cf9adad8f6d2@googlegroups.com> |
| References | <149e9472-ec31-4b74-9f20-d4945a9fb678@googlegroups.com> <1c670c04-4367-4518-aa50-cf9adad8f6d2@googlegroups.com> |
| Date | Thu, 6 Sep 2012 23:16:26 +1000 |
| Subject | Re: Need help fixing this error please:NameError: global name is not defined |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.300.1346937389.27098.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1346937389 news.xs4all.nl 6840 [2001:888:2000:d::a6]:34619 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:28587 |
Show key headers only | View raw
On Thu, Sep 6, 2012 at 10:07 PM, shaun <shaun.wiseman91@gmail.com> wrote: > Hi Chris, > > I'm changing it into multiple classes because the script is going to get much larger its more for maintainability reasons rather than functionality reasons. Doesn't necessarily have to be multiple classes. Python gives you the flexibility of dividing things in whatever way makes sense to your project. Maybe a class is right - I can't say without seeing all your code and knowing all your intentions - but if it's not, you don't have to feel constrained by it. This isn't Java where all code goes into a class! > Thanks so much man it was the "self" fix you stated above. I woe you a pint of Guinness :D You're welcome! I'm a non-drinker, though, so you can drink it and think of me. :) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Need help fixing this error please:NameError: global name is not defined shaun <shaun.wiseman91@gmail.com> - 2012-09-06 03:45 -0700
Re: Need help fixing this error please:NameError: global name is not defined Chris Angelico <rosuav@gmail.com> - 2012-09-06 21:05 +1000
Re: Need help fixing this error please:NameError: global name is not defined Dave Angel <d@davea.name> - 2012-09-06 07:05 -0400
Re: Need help fixing this error please:NameError: global name is not defined Peter Otten <__peter__@web.de> - 2012-09-06 13:07 +0200
Re: Need help fixing this error please:NameError: global name is not defined Chris Angelico <rosuav@gmail.com> - 2012-09-06 21:53 +1000
Re: Need help fixing this error please:NameError: global name is not defined shaun <shaun.wiseman91@gmail.com> - 2012-09-06 05:07 -0700
Re: Need help fixing this error please:NameError: global name is not defined Chris Angelico <rosuav@gmail.com> - 2012-09-06 23:16 +1000
Re: Need help fixing this error please:NameError: global name is not defined MRAB <python@mrabarnett.plus.com> - 2012-09-06 13:08 +0100
Re: Need help fixing this error please:NameError: global name is not defined Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-06 17:16 -0400
csiph-web