Re: Absolute imports in Python 2.4

2009-06-03 Thread Steven D'Aprano
On Tue, 02 Jun 2009 02:37:04 -0300, Gabriel Genellina wrote: > En Mon, 01 Jun 2009 21:40:26 -0300, Steven D'Aprano > escribió: > >> I have a package which includes a module which shadows a module in the >> standard library. For example: >> >> package >> +-- __init__.py >> +-- ham.py >> +-- spam.

Re: Absolute imports in Python 2.4

2009-06-01 Thread Gabriel Genellina
En Mon, 01 Jun 2009 21:40:26 -0300, Steven D'Aprano escribió: I have a package which includes a module which shadows a module in the standard library. For example: package +-- __init__.py +-- ham.py +-- spam.py +-- sys.py Inside that package, I want to import the standard library sys. In ot

Absolute imports in Python 2.4

2009-06-01 Thread Steven D'Aprano
I have a package which includes a module which shadows a module in the standard library. For example: package +-- __init__.py +-- ham.py +-- spam.py +-- sys.py Inside that package, I want to import the standard library sys. In other words, I want an absolute import. In Python 2.7, absolute impo