Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53675

Re: NameError: global name '' is not defined , but a bit differences

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bsk16@case.edu>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:not': 0.03; 'explicitly': 0.05; 'namespace': 0.09; 'overflow': 0.09; 'received:209.85.219': 0.09; 'useless': 0.09; '"from': 0.16; 'nameerror:': 0.16; 'subject:bit': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'stack': 0.19; 'things.': 0.19; 'import': 0.22; 'coding': 0.22; 'to:name:python-list@python.org': 0.22; 'error': 0.23; 'adds': 0.24; 'file.': 0.24; 'question': 0.24; 'post': 0.26; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'especially': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'sep': 0.31; 'anyone': 0.31; 'figure': 0.32; "we're": 0.32; 'style': 0.33; 'received:209.85': 0.35; 'skip:u 20': 0.35; 'received:google.com': 0.35; 'yours,': 0.36; 'doing': 0.36; 'list': 0.37; 'received:209': 0.37; 'step': 0.37; 'thank': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'you.': 0.62; 'complete': 0.62; 'name': 0.63; 'our': 0.64; 'dear': 0.65; 'helping': 0.70; 'wanting': 0.93; '2013': 0.98
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=KjIsa6nTgDXOHCAsOGsLQP/Z6jcMKJL9vwSsKoA/j6E=; b=HuCnUzUCroGo+BfhhzvgPBIV+WXjqAgJC2atBJL4SdRcuC0+mfuB2y7rTCkDi/cw4j bySOaZkLugAyimRlMpFFSG5X0JYwCkK0QhCX0CzkGzD2zxXqHqzPshA4ozzbd+n5M6sZ nPNyUqHTueJFhE1V+r6TsRFx77yX2EnCPe78fEFe2Bf3rhLx+a4gpJs7FZF842UklDuC ttlAtJRuTzwWiSXMs6P7+Wx6vFBpqlk/g6B5c6DF9m3oi4U4XeqGvW8GZ5qZ3yx1I/Pw yAEiDg7tErtSSWyELiIJ+6TCSTRBzUH7uvZgHvvr9CN/+E5ziHmuHPsHoEqVba3NDM/s tI+w==
X-Gm-Message-State ALoCoQk35MizSN80ji3bAQWbvjLJ2DE8asZ7NuaU6+Us5kpJmGFa/x/PTbe4caoDm8hRHAQUtlwqlGO1LVMP4KJzLVyQCAQW/nVr+YVJuFsD8hv8UfgNMzkaExzIYJWbQ3Wb5xEuZvMWrdML2IfpEE287amQE7V2uQ==
X-Received by 10.60.76.72 with SMTP id i8mr5086128oew.11.1378359540332; Wed, 04 Sep 2013 22:39:00 -0700 (PDT)
X-Received by 10.60.76.72 with SMTP id i8mr5086122oew.11.1378359540229; Wed, 04 Sep 2013 22:39:00 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <1378354650.6005.4.camel@debian>
References <1378354650.6005.4.camel@debian>
From Benjamin Kaplan <benjamin.kaplan@case.edu>
Date Wed, 4 Sep 2013 22:38:40 -0700
Subject Re: NameError: global name '' is not defined , but a bit differences
To "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-Junkmail-Whitelist YES (by domain whitelist at mpv1.tis.cwru.edu)
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.78.1378359925.5461.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378359926 news.xs4all.nl 15911 [2001:888:2000:d::a6]:38678
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53675

Show key headers only | View raw


On Wed, Sep 4, 2013 at 9:17 PM, Mohsen Pahlevanzadeh
<mohsen@pahlevanzadeh.org> wrote:
> Dear all ,
>
> i get the error :
>
> NameError: global name 'ui' is not defined
>
> Complete question is at :
> http://stackoverflow.com/questions/18627608/nameerror-global-name-is-not-defined-but-differences
>
> Before answering, Thank you for your attention...!
>
>
> Yours,
> Mohsen
>
>

Please don't just post a link to Stack Overflow for your questions. It
means that if Stack Overflow ever shuts down, this question is useless
to anyone else looking at this post and also adds an extra step to
anyone on this list wanting to answer your question- we're helping you
in our spare time because we want to help people with these things.
Please don't make us do extra work to help you.

Just a note- doing a "from module import *" is considered poor coding
style because it makes it difficult to figure out where all the names
are coming from, especially if you start doing multiple import *s in a
single code file. Either explicitly import the names you need ("from
ui.interface.interface import InterfaceCodes") or import the module
without adding the names to the local namespace ("import
ui.interface.interface")

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: NameError: global name '' is not defined , but a bit differences Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-09-04 22:38 -0700

csiph-web