della wrote: > On 27 Nov, 11:21, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> You can't do that. How should python distinguish between the two modules >> with the same name? > > That's why I was trying to import them with different names :)
You weren't. The "as" creates just a local alias. It's roughly equivalent to import foo as bar <-> import foo bar = foo del foo But in the interpreters module dict, foo it is, and stays. Diez -- http://mail.python.org/mailman/listinfo/python-list