Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5171

[Python-de] automatischer import fallback

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From robert <robert@redcor.ch>
Newsgroups de.comp.lang.python
Subject [Python-de] automatischer import fallback
Date Mon, 28 May 2018 22:33:43 +0200
Lines 24
Message-ID <mailman.26.1527540003.2804.python-de@python.org> (permalink)
References <0d867129-e025-508e-c1e3-81415b4039ff@redcor.ch>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de R0deI0asHOI2zPkDJUEoww9PKlBjDzPfWjPUMwkLF57Q==
Return-Path <robert@redcor.ch>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
Content-Language de-CH
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.26
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 <0d867129-e025-508e-c1e3-81415b4039ff@redcor.ch>
Xref csiph.com de.comp.lang.python:5171

Show key headers only | View raw


Hoi zäme,


ist es möglich 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ände  bzw einen Importerror (ver)wirft.


danke

gruss

robert

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

[Python-de] automatischer import fallback robert <robert@redcor.ch> - 2018-05-28 22:33 +0200

csiph-web