Re: [Python-Dev] Proposal: Allow any mapping after ** in calls

2007-04-18 Thread Guido van Rossum
I'm +1 on the idea, but have no time to review the change. On 4/18/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > Alexander Belopolsky schrieb: > > Python allows arbitrary sequences after * in calls, but an expression > > following ** must be a (subclass of) dict. I believe * and ** should > > be

Re: [Python-Dev] Proposal: Allow any mapping after ** in calls

2007-04-18 Thread Georg Brandl
Alexander Belopolsky schrieb: > Python allows arbitrary sequences after * in calls, but an expression > following ** must be a (subclass of) dict. I believe * and ** should > be treated similarly and since f(*UserList(..)) is valid, > f(**UserDict(..)) should be valid as well. > > Of course, I ca

[Python-Dev] Proposal: Allow any mapping after ** in calls

2007-03-23 Thread Alexander Belopolsky
Python allows arbitrary sequences after * in calls, but an expression following ** must be a (subclass of) dict. I believe * and ** should be treated similarly and since f(*UserList(..)) is valid, f(**UserDict(..)) should be valid as well. Of course, I can work around this limitation by writing f