[Patches] [ python-Patches-1686487 ] Allow any mapping after ** in calls
SourceForge.net
noreply at sourceforge.net
Fri Mar 23 19:45:00 CET 2007
Patches item #1686487, was opened at 2007-03-23 03:27
Message generated for change (Comment added) made by gbrandl
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: Georg Brandl (gbrandl)
Date: 2007-03-23 18: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
More information about the Patches
mailing list