Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Christopher Arndt Newsgroups: de.comp.lang.python Subject: Re: [Python-de] import Problem Date: Fri, 28 Apr 2017 08:45:19 +0200 Lines: 14 Message-ID: References: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de imbBfoo5y/fN/8wxcCoE/wmb2kpp0xNUp1BsAWsI+l1Q== Return-Path: X-Original-To: python-de@python.org Delivered-To: python-de@mail.python.org X-Virus-Scanned: Debian amavisd-new at mx1.0x20.eu X-Mailer: iPad Mail (13G36) In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Die Deutsche Python Mailingliste List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com de.comp.lang.python:4751 > Am 28.04.2017 um 07:55 schrieb Hermann Riemann : > python3 p5.py > liefert leider 0 Zum Gl=C3=BCck tut es das, denn py3.x und p4.x sind unterschiedliche Variabl= en. In Python sind mit "global" deklarierte Variablen *modul*global, d.h. Je= des Modul hat seinen eigenen Namensraum. https://docs.python.org/3/tutorial/classes.html#python-scopes-and-namespaces= Chris=