importing module conflict

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


Matias Surdi <matiassurdi at gmail.com> 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:http://www.python.org/peps/pep-0328.html> and implemented in
Python 2.5 <URL:http://docs.python.org/whatsnew/pep-328.html>.

-- 
 \      "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