Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4462
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "Diez B. Roggisch" <deets@web.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] variable angeblich not defined, |
| Date | Mon, 16 May 2016 11:40:59 +0200 |
| Lines | 57 |
| Message-ID | <mailman.13.1463392452.19823.python-de@python.org> (permalink) |
| References | <5ab8b8c0-adf3-4752-8462-c0ca4b8aa01f@googlegroups.com> <F607465F-51E5-490E-B306-45573E863FDE@web.de> |
| Mime-Version | 1.0 (Mac OS X Mail 9.3 \(3124\)) |
| Content-Type | multipart/signed; boundary="Apple-Mail=_5074987B-6E90-4AC9-9E47-95E215D4BC37"; protocol="application/pgp-signature"; micalg=pgp-sha512 |
| X-Trace | news.uni-berlin.de 9GPH2L5vk86goL0pzKWzIwGEKeDjDEzfb+FBvDPRkPTw== |
| Return-Path | <deets@web.de> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| X-Pgp-Agent | GPGMail 2.6b2 |
| In-Reply-To | <5ab8b8c0-adf3-4752-8462-c0ca4b8aa01f@googlegroups.com> |
| X-Mailer | Apple Mail (2.3124) |
| X-Provags-ID | V03:K0:acH1vxA18kooaLmy4XxzYgR1akfnfWVVe9aIdwpCBq/OIf8jCuK aGmJKgxZStwB1DFxaqk3ViFlzyz+uoxKd9oppntd4ts1TOefcf/9pyKoQ8xQM8nRsvv68N9 eDR188I1cIsx68wMxNy0UYbtAvQYygyRvixDhcMixpgBDgmxDH3knMd3yDqh9IDur9xEVUo DsBl8I9eAMCVGWPa7S3iA== |
| X-UI-Out-Filterresults | notjunk:1;V01:K0:YLBlKoyBXqQ=:2EAIHneuFlD0pt5bicnh66 zi71/gK7Cul7i92czuqNDi2V3RXeHHDrknBQ8W6p5JDF8bOfPf6kOAvNSU0LAuT/4Cl6kFi3a 3SKeAwEnrzfAfc0tfa8pOvGkaf+Xl91jCDPRuUcpx+STbOrq6szEqaoSP4/4qi06CfNkDv5V3 MZ7oAttgGxDbzoa0bgkuRR2P8LQPfrfj2wRDCT5tDjhAsiKLN+BWfeccCzwHwPiSEEPHzC6WK XewyoOLn6Akph+yTTiLcSFNlt95GIhhKSsWDkVY4AvuxanQnqvdJZg8CmbcH/tYp5UojBCbT1 PnGtlMH7C+VZsZdKsJqB/r7JHHRlMWQMMBspGfHgxfnn/cv7N4UGrKQI5pLO7LavgmFndwL/7 0ehYwfdl1cK/7KndhpryhQCwKn/Io48HU2aUt8EFi4GvHN785Qev+l0gmQI54SnNXAqFEu4Zt qI7nLYMJkBbHoSLFYjwc52FEPERice5kH9tgGYBatro6hSCbKR0cdymsyfeHHvxIG12k7mzx3 Risd9yHtsm9tjwErgMHVtvgFW1gz9XYR6CjNvrZED3sWE6bZilN0UIRdZFHa46vbU5oS2J7cj 4y64iaRwLLjezBSJt9O+hXICXqHzhAEacwagb3lvlOTiPWFf8iftPW962jATC8o8XXG0iJpJV 85CMkpl8jZ2LtjRogmAHCZfrPZe281tXjqZkiYIkPFZWU4yHSwzKR5uGqmbJTZT4J71iY4diF gpZ27pB9yRByd2bsft53JKKMNfLEWUJ9t9C9oEFqau3jpXhQwEjfwPe32MM= |
| 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 | <F607465F-51E5-490E-B306-45573E863FDE@web.de> |
| X-Mailman-Original-References | <5ab8b8c0-adf3-4752-8462-c0ca4b8aa01f@googlegroups.com> |
| Xref | csiph.com de.comp.lang.python:4462 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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!
Koennte sein, dass du eine Quellcode-Datei umbenannt hast, aber den import nicht angepasst - so dass eine alte PYC-Datei verwandt wird.
Diez
Back to de.comp.lang.python | Previous | Next — Previous in thread | Find similar
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