[Python-bugs-list] [ python-Bugs-485153 ] Erroneous Fail of PyEval_CallObject

noreply@sourceforge.net noreply@sourceforge.net
Sat, 24 Nov 2001 11:46:44 -0800


Bugs item #485153, was opened at 2001-11-24 11:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=485153&group_id=5470

Category: None
Group: Python 2.1.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Cl. Schmidt (clemm)
Assigned to: Nobody/Anonymous (nobody)
Summary: Erroneous Fail of PyEval_CallObject

Initial Comment:
If embedding python v2.1.1 in a Windows MFC project,
it shows the following behaviour:

When a call to e.g. PyArgParseTuple had failed,
a subsequent call to PyEval_CallObject fails. The 
parameters of the both calls are completely 
independent and have nothing to do with each other.
Trying to retrieve the error text of the failed 
PyEval_CallObject returns the error of the 
PyArgParseTuple, namely
"new style getargs format but argument list is not a 
tuple".
If the first (erroneous) call to PyArgParseTuple is 
commented, the PyEval_CallObject works without any 
problem.

The attached code snippet documents the error.

No attempts have been made to reproduce the behaviour 
in other environments.

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

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