[Python-Dev] Keyword-only arguments in 2.x

2010-04-18 Thread George Sakkis
Hi all, what's the status of backporting PEP 3102 ? It was supposed to go into 2.6 and it seems it won't be in 2.7 either. There is an updated patch in the tracker [1] that applies cleanly on the latest trunk and passes all relevant tests, so unless there has been a decision against backporting it

[Python-Dev] SyntaxError: 'import *' not allowed with 'from .'

2008-01-16 Thread George Sakkis
I posted this on c.l.py but I didn't get a definite answer so I am asking again here: is it documented anywhere that "from .relative.module import *' is syntax error? Unless I missed it, PEP 328 doesn't mention anything about it. Also, while I understand the general caveats and warnings against "im

Re: [Python-Dev] dict(keys, values)

2007-02-01 Thread George Sakkis
On 2/1/07, Brian Quinlan <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > Perhaps this has been brought up in the past but I couldn't find it in > > the archives: far too often I use the idiom dict(zip(keys,values)), or > > the same with izip. How does

[Python-Dev] dict(keys, values)

2007-01-31 Thread George Sakkis
Perhaps this has been brought up in the past but I couldn't find it in the archives: far too often I use the idiom dict(zip(keys,values)), or the same with izip. How does letting dict take two positional arguments sound ? Pros: - Pretty obvious semantics, no mental overhead to learn and remember i