This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: skipitem() in getargs.c missing some types
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, hacocuk, ringerc, subik
Priority: normal Keywords:

Created on 2004-02-09 17:30 by hacocuk, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg19951 - (view) Author: Kirill A Kryloff (hacocuk) Date: 2004-02-09 17:30
python 2.2.3
looks like skipitem in getargs.c is missing some types
'k' for example
msg19952 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-01 12:10
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.
msg19953 - (view) Author: Petr Vaněk (subik) Date: 2005-07-11 19:06
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.))).  
msg19954 - (view) Author: Craig Ringer (ringerc) Date: 2005-07-11 19:08
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. 
msg19955 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-07-11 19:11
Logged In: YES 
user_id=1188172

I submitted a patch (#1212928) which fixes that.
msg19956 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-09-14 19:32
Logged In: YES 
user_id=1188172

Fixed with patch #1212928.
History
Date User Action Args
2022-04-11 14:56:02adminsetgithub: 39919
2004-02-09 17:30:50hacocukcreate