importing module conflict

Ben Finney bignose+hates-spam at
Thu Jan 10 14:19:44 CET 2008

Matias Surdi <matiassurdi at> writes:

> Suppose I've a module named "urllib" and from it I need to import
> the urllib module from the python standart library.

What you want is the "absolute import" behaviour, described in PEP 328
<URL:> and implemented in
Python 2.5 <URL:>.

 \      "The way to build large Python applications is to componentize |
  `\          and loosely-couple the hell out of everything."  -- Aahz |
_o__)                                                                  |
Ben Finney

More information about the Python-list mailing list