[Python-bugs-list] [Bug #113807] PyArg_ParseTupleAndKeywords and Unicode...?

noreply@sourceforge.net noreply@sourceforge.net
Thu, 7 Sep 2000 09:11:07 -0700


Bug #113807, was updated on 2000-Sep-07 09:11
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Open
Resolution: None
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...


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=113807&group_id=5470