Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4751
| From | Christopher Arndt <chris@chrisarndt.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] import Problem |
| Date | 2017-04-28 08:45 +0200 |
| Message-ID | <mailman.476.1493362252.2951.python-de@python.org> (permalink) |
| References | <emg3qcFkefeU1@mid.individual.net> <EEA74591-90FD-455F-8485-5075B3B25360@chrisarndt.de> |
> Am 28.04.2017 um 07:55 schrieb Hermann Riemann <nospam.ng@hermann-riemann.de>: > python3 p5.py > liefert leider 0 Zum Glück tut es das, denn py3.x und p4.x sind unterschiedliche Variablen. In Python sind mit "global" deklarierte Variablen *modul*global, d.h. Jedes Modul hat seinen eigenen Namensraum. https://docs.python.org/3/tutorial/classes.html#python-scopes-and-namespaces Chris
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
import Problem Hermann Riemann <nospam.ng@hermann-riemann.de> - 2017-04-28 07:55 +0200
Re: [Python-de] import Problem Christopher Arndt <chris@chrisarndt.de> - 2017-04-28 08:45 +0200
Re: [Python-de] import Problem Hermann Riemann <nospam.ng@hermann-riemann.de> - 2017-04-28 09:07 +0200
Re: [Python-de] import Problem Peter Otten <__peter__@web.de> - 2017-04-28 09:44 +0200
Re: [Python-de] import Problem Hermann Riemann <nospam.ng@hermann-riemann.de> - 2017-04-28 11:33 +0200
Re: [Python-de] import Problem Peter Otten <__peter__@web.de> - 2017-04-28 12:48 +0200
Re: [Python-de] import Problem Hermann Riemann <nospam.ng@hermann-riemann.de> - 2017-04-28 13:21 +0200
Re: [Python-de] import Problem Peter Otten <__peter__@web.de> - 2017-04-28 14:48 +0200
Re: import Problem Hermann Riemann <nospam.ng@hermann-riemann.de> - 2017-04-28 14:48 +0200
csiph-web