Patches item #1686487, was opened at 2007-03-22 23:27
Message generated for change (Comment added) made by belopolsky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1686487&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alexander Belopolsky (belopolsky)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow any mapping after ** in calls

Initial Comment:
Python allows arbitrary sequences after * in calls, but an expression following 
** must be a (subclass of) dict.  The attached patch makes Python accept 
arbitrary mappings after **. 

----------------------------------------------------------------------

>Comment By: Alexander Belopolsky (belopolsky)
Date: 2007-03-23 15:44

Message:
Logged In: YES 
user_id=835142
Originator: YES

I've fixed the flaws in star-star-mapping-1.patch .  I will ask on
python-dev about the feature.  If the proposal is accepted, I will probably
refactor the code to avoid using the second goto label.
File Added: star-star-mapping-1.patch

----------------------------------------------------------------------

Comment By: Georg Brandl (gbrandl)
Date: 2007-03-23 14:45

Message:
Logged In: YES 
user_id=849994
Originator: NO

Two flaws:
- what if kwdict is NULL? Shouldn't happen, but the old version raises an
error in this case.
- if PyDict_Update fails, tmpdict is leaked.

Please ask on python-dev whether to include this feature.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1686487&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to