A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-June/004541.html below:

[Python-Dev] Package ambiguities

[Python-Dev] Package ambiguities [Python-Dev] Package ambiguitiesJeremy Hylton jeremy@beopen.com
Wed, 7 Jun 2000 19:00:36 -0400 (EDT)
>In fact, if you change the first line to "from A.parent import *"
>(not that i am advocating this!) -- it works.  In short:
>
>    from parent import *    ...  Parent             doesn't work
>    import parent           ...  parent.Parent      doesn't work
>    
>    from A.parent import *  ...  Parent             works
>    import A.parent         ...  A.parent.Parent    works

One other possibility that ought to work (?)

    from A import parent

Jeremy



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4