views:

20

answers:

1

I m learning python c api functions and keen to learn python 3.1 stable version. Found a same kind of issue recently and tried

PyModule_AddIntConstant(PyObject *module, const char *name, long value) Runtime error occurred for this function call.

Is there something wrong with the function in python 3.1?

A: 

Identified the source for the issue.

The module object returned the function which contains these statements was not proper and it was referring to an invalid address and tats y the error raised.

thanks for spending ur valuable time.

dizgam