Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Frank Grellert Newsgroups: de.comp.lang.python Subject: Re: [Python-de] automatischer import fallback Date: Mon, 28 May 2018 23:02:52 +0200 Lines: 48 Sender: frank.grellert@gmail.com Message-ID: References: <0d867129-e025-508e-c1e3-81415b4039ff@redcor.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de hzFADYwu3DePnCuW9cJsyQNHm3lIOK7s67Z0LJmDATKw== Return-Path: 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=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=5h8kVGT7aA6UjdJn2l9LU2KmHxC2FSKZHCONgLzxCqQ=; b=o6Tdi9d21yLgLc4V3/WGXX0yYOrboBEMPoSHJPHBDMaqW24F1EdKr962mz5FOSR85u nITO0gXiPZkAA3REfhfSKRCI7UzRXky3h8w3CUbTrQ2FfHfWDpjRuB5ky57RodqrZpZb 6BgU2e3iWNJKcExRlAc3JzGUzvKOF6einXr1bbCRPZqIXyAwhV1T0VQ3Z4vstb7Ytomw 3UBuW8LJ4A58hABh51AQAGMP30VcDImys1hzzqFXJxMEobAU7iwJjYogzeFTu5SPtY7N /9CkN8TiHOluYajLmVQzrK25akM5/VK6A3SXlYIVmghOPgyKd/7/PkjmpcsP+3mzFOyr Wgew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=5h8kVGT7aA6UjdJn2l9LU2KmHxC2FSKZHCONgLzxCqQ=; b=HFJOf+5Q/NrVyPG9DyedaCBfhqcAQKjGFpIg2oLSMwQFdBrNCG0J558XYi/d8nxstG hZjnK7RFnVpMneBCs9iNmbTdeZ9fj4AIX35sXFPRmao+9jLDFy0cP4VYyUAxFNYkS3/E gx01Lv3HoWGD2jh8rsngR+Zibk0QmkyPB8KdiUTa8kOVVb6RQN5VSABIZtU4Ki2PBm8K VpiaQOG3BfzGCg7WwCQGhvLYm0559mf0G0M/Xflhx03P7iF4wUTY1etwdLKFl8iWff8X FA0iVIUfRodDBs9SuKULGB5DkhbIjdd0ebiyqnDebeniFT5vFbT3XEzBRHBbeSCSKPa9 /HrQ== X-Gm-Message-State: ALKqPwcTlx4dVj+PLWe9uANXWul/xHyCDJ7P8Zx4BFzbqUFWgBeFXC7V 83733auZx5xJ+BV26ApCsmAy3B65G5jCGsKvrI8= X-Google-Smtp-Source: AB8JxZpo18PgBj7axbND6MzAL2mDX6LOwPZlmNC/W2OcI7GVMZC9iFfqYPnXYwPtPl/yJN5Bm1kbdXXqu+raujtztbE= X-Received: by 2002:a50:ac13:: with SMTP id v19-v6mr16666034edc.153.1527541392751; Mon, 28 May 2018 14:03:12 -0700 (PDT) In-Reply-To: <0d867129-e025-508e-c1e3-81415b4039ff@redcor.ch> X-Google-Sender-Auth: 4H6VqIxS16zib5G_EaBR-DwSIPU X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.26 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: <0d867129-e025-508e-c1e3-81415b4039ff@redcor.ch> Xref: csiph.com de.comp.lang.python:5172 was spricht gegen try: import xyz except: import zyx Frank Am 28. Mai 2018 um 22:33 schrieb robert : > Hoi z=C3=A4me, > > > ist es m=C3=B6glich einen automatischen import fallback zu machen? > > Dieser soll einen import der form: > > import XXX.irgend.was > > im falle eines import errors automatisch > > mit > > import ZZZ.irgend.was > > wiederholen, bevor er die H=C3=A4nde bzw einen Importerror (ver)wirft. > > > danke > > gruss > > robert > > _______________________________________________ > python-de maillist - python-de@python.org > https://mail.python.org/mailman/listinfo/python-de --=20 *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*= +*+*+*+*+* Frank Grellert Email: grellert@web.de Webseite: http://fotoblog.57ps.de/ *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*= +*+*+*+*+*