[Python-bugs-list] [Bug #113807] PyArg_ParseTupleAndKeywords and Unicode...?
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 8 Sep 2000 08:20:43 -0700
Bug #113807, was updated on 2000-Sep-07 09:11
Here is a current snapshot of the bug.
Project: Python
Category: Core
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Summary: PyArg_ParseTupleAndKeywords and Unicode...?
Details: I have a small extension that works OK with
PyArg_ParseTuple and a es# format; using the
same format with PyArg_ParseTupleAndKeywords
doesn't seem to work -- after importing that
module, Python thinks 2 args are needed, and
one of them is an 'impossible format character'.
Experimentally switching to s#, it works
_except_ when I use the name=value format
AND I pass a u'something' as the value, then
it crashes the interpreter.
So I'm going back to PyArg_ParseTuple, but,
the AndKeywords form _is_ also supposed to
work with Unicode, right...?
The platform I'm using is NT 4, SP6, with
MS VC++ 6 SP4 -- just in case it's platform
specific...
Follow-Ups:
Date: 2000-Sep-07 15:03
By: jhylton
Comment:
Please do triage on this bug.
-------------------------------------------------------
Date: 2000-Sep-08 04:49
By: lemburg
Comment:
I've just checked in a patch which should fix this.
As I don't have code which uses keywords *and*
"es#", could you perhaps check whether this does
solve the problem ?
You'll have to download and recompile Python from the CVS
tree version for this. Alternatively, perhaps you could provide
some C code demonstrating the bug, which I could then
check on Unix.
Thanks.
-------------------------------------------------------
Date: 2000-Sep-08 08:20
By: lemburg
Comment:
Verified the fix using an example test extension from
Alex Martelli.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=113807&group_id=5470