}
//JR 04.04.2005 Debug if ( !PyInt_Check( ArgValue ) ) {
//Difficult to understand that behavior ... Python char type is a string of length 1 !
- if ( !PyString_Check( ArgValue ) ) {
+// or type is int ...
+ if ( !PyString_Check( ArgValue ) && !PyInt_Check( ArgValue ) ) {
cdebug << "ArgOut" << i << " : " << sname << " " << method << " ERROR (char)" << endl ;
RetVal = false ;
}
const bool ErrorValue = true;
bool aRet;
try {
- MESSAGE( pthread_self() << "Python method beginning : " << thePyString );
#if PyDynInvokeTrace
+ MESSAGE( pthread_self() << "Python method beginning : " << thePyString );
cdebug_in << pthread_self() << "Python method beginning : " << thePyString << endl ;
#endif
aRet = PyRun_SimpleString( thePyString );
// asv : 20.01.05 : changes involved with switching to old (HEAD) KERNEL
//aRet = _OutNode->SuperVisionContainer()->ActivatePythonExecution( thePyString ) ;
- MESSAGE( pthread_self() << "Python method finished." );
#if PyDynInvokeTrace
+ MESSAGE( pthread_self() << "Python method finished." );
cdebug_out << pthread_self() << "Python method finished." << endl ;
#endif
} catch( ... ) {