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,

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Andreas Jung <lists@zopyx.com>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] variable angeblich not defined,
Date Mon, 16 May 2016 11:14:59 +0200
Lines 35
Sender zopyxfilter@gmail.com
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>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de dKegpg8jMCZFUBjH0O5Frwk6ORDsTy/vm+/xmic+zk7Q==
Return-Path <zopyxfilter@gmail.com>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=UeCPTj/nGwU63yFF2MheTJncEbG8fugFAURQZDjRtZk=; b=rYsFRmbXmUby0r4ikU5iJEQXICTKC3hsRbTNLT/QyyqXKu/3A62EdqMG7r50sc28dV /79k6WD00xcGDCMS2MHuD/uWjhxC0avVjwMGJMVOQhODfXOkVMVugQ+SWMnoUafWwMxB 1VIO0X+fb66UhUJ+hY7+FwLprYvvFOPlCccvEpNCHbZ+Ef0Zvtv9rUZ78bim/54P+BRr UDWc7pzonWFa8Tn5O0YmQ0o2t+9pUkzg3n6LjqdeYYn/dHriK7IcAL4Tz50qtgrmQ09P N/Jq4+UZVOMo4vumfpRuVkPk5JsI/xD1NK3CB1jXGPtC5/GIJRmnLrv2z1yiQuABU8KC NMBQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=UeCPTj/nGwU63yFF2MheTJncEbG8fugFAURQZDjRtZk=; b=KDfovJN4KsNj8lwz3K1ym9JmxAffgsNhobNE4yR7t021HF2MBgk4qtTx6gAalS8zE9 SNqufEOGq3RDb0rovkcN+4AuD/Yb/YHXiyNEkek/ZL7m9hTnK5d84a+haNXPnWzL3h9m XQLQKCF/tyTpUqjiei25Aw5JOxgAQvWlQJf74ux81ZkNXPdwx1sZka3eG3SNl22YHajJ nDddSIOGeNK5ofsnepKd3jLHHy17rsfhpk/o5abevegf7LyGqNhaWF4pkDPXMILUvp5I jNV781ztxKHHcUBDtOd6fz+BgMGU6/dyKNVV+epnh1Vj+jZIuNJGJyFsBfNpnEgBNWW7 CKvw==
X-Gm-Message-State AOPr4FWFMf7PFkSYPqKBJYlb09YRPUuCVJnDzo36mre/m6nXEMBZiGrsGH1Fy7Qp6IFPMaG+zL3yd40AqFzezA==
X-Received by 10.112.63.100 with SMTP id f4mr11036610lbs.57.1463390099741; Mon, 16 May 2016 02:14:59 -0700 (PDT)
In-Reply-To <5ab8b8c0-adf3-4752-8462-c0ca4b8aa01f@googlegroups.com>
X-Google-Sender-Auth iH-UreEWQ5QZAVOcA4tecTDhhsc
X-Content-Filtered-By Mailman/MimeDel 2.1.22
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAL3mDbwmqgNwF6Th1jxQwt+in6DcFdapKpZmd=UY+7E2rvZS1A@mail.gmail.com>
X-Mailman-Original-References <5ab8b8c0-adf3-4752-8462-c0ca4b8aa01f@googlegroups.com>
Xref csiph.com de.comp.lang.python:4459

Show key headers only | 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