[Python-Dev] Relative import (original) (raw)

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, rowops, _ > > 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 rowops, 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