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


Groups > comp.lang.python > #53748 > unrolled thread

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

Started byMohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
First post2013-09-06 06:21 +0430
Last post2013-09-06 06:21 +0430
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromMohsen Pahlevanzadeh <mohsen@pahlevanzadeh.org>
Date2013-09-06 06:21 +0430
SubjectRe: NameError: global name '' is not defined , but a bit differences
Message-ID<mailman.110.1378432313.5461.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web