Is there any way to unimport a library

Chris Angelico rosuav at gmail.com
Sun Nov 20 11:53:06 EST 2011


On Mon, Nov 21, 2011 at 3:39 AM, Gelonida N <gelonida at gmail.com> wrote:
> No mixing would not be possible.
>
> So either I need the first two libs or the second two.
>

I wonder, can you make the first one import the second one? That
automatically defines your dependency right there, and may make things
clearer - you import lib1_version1, and if that fails, you import
lib1_version2; if either succeeds, you know the matching lib2 is
available.

ChrisA



More information about the Python-list mailing list