[Python-Dev] Proposal: Allow any mapping after ** in calls (original) (raw)
Guido van Rossum guido at python.org
Wed Apr 18 19:07:20 CEST 2007
- Previous message: [Python-Dev] Proposal: Allow any mapping after ** in calls
- Next message: [Python-Dev] Weekly Python Patch/Bug Summary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm +1 on the idea, but have no time to review the change.
On 4/18/07, Georg Brandl <g.brandl at gmx.net> 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 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(**dict(UserDict(..))), but this is unnatural given that I don't have > to do f(*tuple(UserList(..))). > > I have submitted a patch on SF that makes Python accept arbitrary > mappings after **.
Ping! Nobody interested in this? Georg
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Proposal: Allow any mapping after ** in calls
- Next message: [Python-Dev] Weekly Python Patch/Bug Summary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]