Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53680
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| 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; 'subject:not': 0.03; 'explicitly': 0.05; 'namespace': 0.09; 'overflow': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'useless': 0.09; 'jan': 0.12; 'posted': 0.15; '"from': 0.16; 'benjamin': 0.16; 'nameerror:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'spamming': 0.16; 'subject:bit': 0.16; 'so.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'stack': 0.19; 'things.': 0.19; 'import': 0.22; 'coding': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'adds': 0.24; 'stick': 0.24; 'file.': 0.24; 'question': 0.24; 'post': 0.26; 'least': 0.26; 'defined': 0.27; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'especially': 0.30; 'code': 0.31; 'sep': 0.31; 'anyone': 0.31; 'figure': 0.32; "we're": 0.32; 'says': 0.33; 'style': 0.33; 'skip:u 20': 0.35; 'doing': 0.36; 'two': 0.37; 'list': 0.37; 'step': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'ago,': 0.61; 'ago.': 0.61; 'forum': 0.61; 'traffic': 0.61; 'received:173': 0.61; 'you.': 0.62; 'complete': 0.62; 'name': 0.63; 'our': 0.64; 'hours': 0.66; 'close': 0.67; 'helping': 0.70; 'received:fios.verizon.net': 0.84; 'wanting': 0.93; '2013': 0.98 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Terry Reedy <tjreedy@udel.edu> |
| Subject | Re: NameError: global name '' is not defined , but a bit differences |
| Date | Thu, 05 Sep 2013 03:47:22 -0400 |
| References | <1378354650.6005.4.camel@debian> <CAMuTYXh2SA-jGdVqaqiYKS7=jxmT13=y3-jOhv6zd4oHeN6iKA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | pool-173-75-251-66.phlapa.fios.verizon.net |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
| In-Reply-To | <CAMuTYXh2SA-jGdVqaqiYKS7=jxmT13=y3-jOhv6zd4oHeN6iKA@mail.gmail.com> |
| 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.81.1378367256.5461.python-list@python.org> (permalink) |
| Lines | 34 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1378367256 news.xs4all.nl 15893 [2001:888:2000:d::a6]:32807 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:53680 |
Show key headers only | View raw
On 9/5/2013 1:38 AM, Benjamin Kaplan wrote:
> On Wed, Sep 4, 2013 at 9:17 PM, Mohsen Pahlevanzadeh
> <mohsen@pahlevanzadeh.org> wrote:
>> 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
Mohsen, I consider this post to be close to spamming in that its purpose
is to drive traffic to your post on SO. SO says you posted the question
3 hrs ago, while my mail agent says you posted the link two hours ago.
Ask a question on one forum and stick with that for at least a few days.
> 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")
--
Terry Jan Reedy
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: NameError: global name '' is not defined , but a bit differences Terry Reedy <tjreedy@udel.edu> - 2013-09-05 03:47 -0400
csiph-web