A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-August/047422.html below:

[Python-Dev] Re: Multi-line import implementation (was: 2.4a2, and @decorators)

[Python-Dev] Re: Multi-line import implementation (was: 2.4a2, and @decorators)Fredrik Lundh fredrik at pythonware.com
Mon Aug 9 17:11:45 CEST 2004
Dima Dorfman wrote:

> I took a stab at implementing this (the easy part of PEP 328--parens
> around import lists). Are the exact semantics of what's allowed
> documented somewhere?

I think this syntax was originally proposed here:

http://mail.python.org/pipermail/python-dev/2003-December/041072.html

which mentions that since "a, b = c" is already equivalent to "(a, b) = c", so
"
in mind, I'd hand out the following scores (0=don't really care):

>   import (os, sys)

+0

>   from sys import (stdin, stdout, stderr)

+1

>   import (os)

+0

>   from sys import (*)

-0

>   from (sys) import stdin

-0

>   import (os), (sys)

-1

>   import (os,)

-1

</F>



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