[ python-Bugs-893549 ] skipitem() in getargs.c missing some types

SourceForge.net noreply at sourceforge.net
Mon Jul 11 21:11:36 CEST 2005


Bugs item #893549, was opened at 2004-02-09 18:30
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=893549&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: Python Library
Group: Python 2.2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Kirill A Kryloff (hacocuk)
Assigned to: Nobody/Anonymous (nobody)
Summary: skipitem() in getargs.c missing some types

Initial Comment:
python 2.2.3
looks like skipitem in getargs.c is missing some types
'k' for example


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

>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-07-11 21:11

Message:
Logged In: YES 
user_id=1188172

I submitted a patch (#1212928) which fixes that.

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

Comment By: Craig Ringer (ringerc)
Date: 2005-07-11 21:08

Message:
Logged In: YES 
user_id=639504

It matters all right. Just wasted a bunch of time tracking
this down into the Python sources and confirming it was a
Python bug. It's really nasty for 'es'.

This will cause bizarre errors for
PyArg_ParseTupleAndKeywords(...) calls using the unsupported
format strings after the | optional argument barrier. The
errors will always contain the string:

impossible<bad format char>

The error will, of course, only turn up if the user omits
one or more of the arguments with unsupported formats. 

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

Comment By: Petr Van&#283;k (subik)
Date: 2005-07-11 21:06

Message:
Logged In: YES 
user_id=784012

this bug is still presented in later versions 2.3, 2.4.  
We have real problem with it (see.  
http://bugs.scribus.net/view.php?id=2018).  
Broken PyArg_ParseTupleAndKeywords in skipitem() (getargs.c)  
causes "impossible<bad format char>" exception by missing case 
conditions.  
  
I would like to please developers for fixing (or we will be forced to  
provide a patch (which will force us to know Python guts (etc.))).  

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

Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-06-01 14:10

Message:
Logged In: YES 
user_id=1188172

The missing types are u, u#, es, es#, et, et#, k, K, I, U,
t#, w, w# and maybe (...)

I don't know whether this is of any significance though.

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

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


More information about the Python-bugs-list mailing list