Re: Getting System error with PyModule_AddIntConstant funtion

2010-05-18 Thread MathanK
I checked for Null also. But No change in the result. Still getting the system error. But when i m calling only c.c(5) function and not calling c.path("hi python c api") function, i m getting proper output without any system error. Any clue? Subject: Re: Getting System

Re: Getting System error with PyModule_AddIntConstant funtion

2010-05-18 Thread Philip Semanchuk
On May 18, 2010, at 11:41 AM, MathanK wrote: Following is a Python C api which runs properly without PyModule_AddIntConstant function. But when PyModule_AddIntConstant() function is used, getting the following error when i call c. path("test call"); " SystemError: NULL result without err