[Python-Dev] Relative import
Guido van Rossum
guido at python.org
Tue Dec 16 20:16:18 EST 2003
> > > from OPAL.Modules.Financial.Reports.COGS import generate, webOptions, \
> > > normalize, row_ops, \
> > > summary
> >
> > But I'm -0 on this change; I fear that someone accidentally adding a
> > trailing comma ... will be very puzzled
>
> How about a "suite" of things to import?
>
> from OPAL.Modules.Financial.Reports.COGS import:
> generate, webOptions, normalize
> row_ops, summary
Nah. But I liked the suggestion seen here earlier of allowing
parenthesis:
from OPAL.Modules.Financial.Reports.COGS import (generate, webOptions,
normalize, row_ops, summary)
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list