importing module conflict
Bruno Desthuilliers
bruno.42.desthuilliers at wtf.websiteburo.oops.com
Thu Jan 10 08:05:29 EST 2008
Matias Surdi a écrit :
> Hi,
>
> Suppose I've a module named "urllib" and from it I need to import the
> urllib module from the python standart library.
>
> ¿how can I do this?
>
> The problem I found is that when I do:
>
>
> import urrlib
>
> The imported module is itself, and not the one from the stdlib.
>
> Any idea?
Yes : don't name your module 'urllib' !-)
Else, you can play with sys.path before importing the std urllib, etc,
etc...
More information about the Python-list
mailing list