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


Groups > comp.lang.python > #53748

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <mohsen@pahlevanzadeh.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'explicitly': 0.05; 'namespace': 0.09; 'overflow': 0.09; 'useless': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '"from': 0.16; 'benjamin': 0.16; 'nameerror:': 0.16; 'question)': 0.16; 'subject:bit': 0.16; 'wrote:': 0.18; '(not': 0.18; 'wed,': 0.18; 'module': 0.19; 'stack': 0.19; 'things.': 0.19; 'import': 0.22; 'coding': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'adds': 0.24; 'file.': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'specially': 0.26; 'post': 0.26; 'defined': 0.27; 'header:In- Reply-To:1': 0.27; 'especially': 0.30; 'code': 0.31; '-0700,': 0.31; 'sep': 0.31; 'anyone': 0.31; 'figure': 0.32; "we're": 0.32; 'style': 0.33; 'skip:u 20': 0.35; 'but': 0.35; 'c++': 0.36; 'yours,': 0.36; 'doing': 0.36; 'list': 0.37; 'step': 0.37; 'thank': 0.38; 'pm,': 0.38; 'either': 0.39; 'you.': 0.62; 'complete': 0.62; 'name': 0.63; 'our': 0.64; 'dear': 0.65; 'helping': 0.70; 'migrating': 0.91; 'wanting': 0.93; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pahlevanzadeh.org; s=default; h=Content-Transfer-Encoding:Mime-Version:Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID; bh=kpVJKcQS/Nx5EzYiIqsA6MiEirN9iRYWb8RBF8q+DIk=; b=A9YR5KrL/ZaCIXWsf38T4es0k/c45jBPP+5q8Sl/7TPfeGzVWyw7laNXihuy9FMEj067W4LHBES4fGIMOoWLnO15P+5lkNWwhsKYOndl5K/T8RyAwJqGdpOxMlIN/wb5yudibHAPvxRs578FgCknZ2sFmarwctkE3ytJEnRpPps=;
Subject Re: NameError: global name '' is not defined , but a bit differences
From Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
To Benjamin Kaplan <benjamin.kaplan@case.edu>
Date Fri, 06 Sep 2013 06:21:09 +0430
In-Reply-To <CAMuTYXh2SA-jGdVqaqiYKS7=jxmT13=y3-jOhv6zd4oHeN6iKA@mail.gmail.com>
References <1378354650.6005.4.camel@debian> <CAMuTYXh2SA-jGdVqaqiYKS7=jxmT13=y3-jOhv6zd4oHeN6iKA@mail.gmail.com>
Content-Type text/plain; charset="UTF-8"
X-Mailer Evolution 3.4.4-4+b1
Mime-Version 1.0
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - part7.royal-servers.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - pahlevanzadeh.org
X-Get-Message-Sender-Via part7.royal-servers.com: authenticated_id: mohsen@pahlevanzadeh.org
Cc "python-list@python.org" <python-list@python.org>
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.110.1378432313.5461.python-list@python.org> (permalink)
Lines 42
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378432313 news.xs4all.nl 15875 [2001:888:2000:d::a6]:41431
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53748

Show key headers only | View raw


On Wed, 2013-09-04 at 22:38 -0700, Benjamin Kaplan wrote:
> 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")
Sorry for my behaviour.... But dear Benjamin, i want to start a
disscussion about migrating to C++ to python , Specially in OOD/P , and
i want to start at stackoverflow and let post to python ML about 1
mounth later.
(NOT Question)

--mohsen

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


Thread

Re: NameError: global name '' is not defined , but a bit differences Mohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org> - 2013-09-06 06:21 +0430

csiph-web