A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-December/041097.html below:

[Python-Dev] Relative import

[Python-Dev] Relative importAndrew 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>

-Andrew.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4