On 2/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Randall wrote:
>
> > While browsing through the source code, I've seen lots of relative
> > imports, which is discouraged in the PEP 8 style guide.
> >
> >     - Relative imports for intra-package imports are highly
> > discouraged.
> >       Always use the absolute package path for all imports.
> >       (However, once PEP 328 [7] is fully implemented, its style of
> >       explicit relative imports will be recommended.)
> >
> > I think that Python 2.5 will issue deprication warnings
>
> I find that a bit unlikely.
>
> > so it would be a good idea to use absolute paths or do the from __future__
> > import absolute_import thing.
>
> What absolute_import thing ?
>
> $ python2.4
> Python 2.4.1 (#1, Aug 11 2005, 18:03:42)
> >>> from __future__ import absolute_import
>   File "<stdin>", line 1
> SyntaxError: future feature absolute_import is not defined

Wow. That PEP appears to be very wrong.

Nevertheless, getting rid of relative imports in the code is a good plan.

Kevin

Reply via email to