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


Groups > de.comp.lang.python > #4459

Re: [Python-de] variable angeblich not defined,

From Andreas Jung <lists@zopyx.com>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] variable angeblich not defined,
Date 2016-05-16 11:14 +0200
Message-ID <mailman.12.1463390106.19823.python-de@python.org> (permalink)
References <5ab8b8c0-adf3-4752-8462-c0ca4b8aa01f@googlegroups.com> <CAL3mDbwmqgNwF6Th1jxQwt+in6DcFdapKpZmd=UY+7E2rvZS1A@mail.gmail.com>

Show all headers | View raw


Bitte liefere uns ein reproduzierbares Beispiel...

-aj

Am 16. Mai 2016 um 11:08 schrieb <helmut_blass@web.de>:

> Hallo,
> ich habe eine grössere Python-Anwendung geschrieben, wobei die
> Steuerung in einer index.py liegt.
> Dort habe ich gleich am Anfang eine Dependency-Variable definiert:
>
> logger = Logger(1,'a')  # 1 > activated , a > append to file
> dependencies = {'config':conf,'logger':logger,'utilities': utilities}
>
> Bis jetzt hat die Weitergabe der dependencies-Variable problemlos
> funktioniert.
> Nachdem ich jedoch eine weitere Funktionalität eingebaut und die Steuerung
> erweitert habe, wird auf einmal die dependencies - Variable nicht mehr
> erkannt.
>
> dependencies['logger'] .log('...my loginfo...')
> NameError: global name 'dependencies' is not defined
>
> Merkwürdig ist, dass in der Fehlermeldung ein Space vor dem .log-Aufruf
> steht.
> Dieses Space existiert NICHT im Quellcode!
>
> any suggestions?
> thx for your help, Helmut
> _______________________________________________
> python-de maillist  -  python-de@python.org
> https://mail.python.org/mailman/listinfo/python-de
>

Back to de.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

variable angeblich not defined, helmut_blass@web.de - 2016-05-16 02:08 -0700
  Re: [Python-de] variable angeblich not defined, Andreas Jung <lists@zopyx.com> - 2016-05-16 11:14 +0200
    Re: [Python-de] variable angeblich not defined, helmut_blass@web.de - 2016-05-16 02:25 -0700
  Re: variable angeblich not defined, Florian Weimer <fw@deneb.enyo.de> - 2016-05-16 11:34 +0200
  Re: [Python-de] variable angeblich not defined, "Diez B. Roggisch" <deets@web.de> - 2016-05-16 11:40 +0200

csiph-web