[Patches] [ python-Patches-1474454 ] Allow PyArg_ParseTupleAndKeywords to unpack tuples

SourceForge.net noreply at sourceforge.net
Sat Apr 22 15:14:41 CEST 2006


Patches item #1474454, was opened at 2006-04-22 00:10
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1474454&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: None
>Status: Open
>Resolution: None
Priority: 5
Submitted By: Roger Upole (rupole)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow PyArg_ParseTupleAndKeywords to unpack tuples

Initial Comment:
PyArg_ParseTuple will unpack tuples using a format 
string like "i(ii)i", but this is currently disallowed 
when using keywords.  This allows 
PyArg_ParseTupleAndKeywords to behave in the same way.
Diff was done against 2.4.3 release, but code works 
equally well with 2.3.5.


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

>Comment By: Martin v. Löwis (loewis)
Date: 2006-04-22 15:14

Message:
Logged In: YES 
user_id=21627

(Didn't mean to reject it yet)

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

Comment By: Martin v. Löwis (loewis)
Date: 2006-04-22 15:13

Message:
Logged In: YES 
user_id=21627

The patch is wrong: It uses strchr to find a "matching"
paren; this does not take into account nested tuples.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1474454&group_id=5470


More information about the Patches mailing list