[Python-Dev] Relative import

Andrew Bennetts andrew-pythondev at puzzling.org
Tue Dec 16 21:45:50 EST 2003

On Wed, Dec 17, 2003 at 02:53:35PM +1300, Greg Ewing wrote:
> > Second impression: "suites" contain statements, not a list.
> That's why I put "suite" in quotes. It wouldn't really be
> a suite, just an indented block of stuff.
> But if you want, it could be a real suite that only
> happens to allow import statements...
>   from OPAL.Modules.Financial.Reports.COGS:
>     import generate, webOptions, normalize
>     import row_ops, summary

But this is also a very odd suite, because you can't use other statements...

But it does make me think of:

  with OPAL.Modules.Financial.Reports.COGS:
    import .generate, .webOptions, .normalize
    import .row_ops, .summary

Which is like a bastard child of the relative import proposal and the with
statement proposal... <wink>


More information about the Python-Dev mailing list