What is the replacement in python 3.x for PyStringObject which is available in
python 2.x?
--
http://mail.python.org/mailman/listinfo/python-list
Hi All,
A variable whose data type is PyUnicodeObject is to be assigned to varioable of
PyBytesObject type
example :
PyUnicodeObject *p = ...whatever...;
function( (PyByteObject*p));
compiled and got a Bus Error.
Cheers,
Mathan
--
http://mail.python.org/mailman/listinfo/python-list
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 error in PyObject_Call "
Python C api- c.c
int te
error with PyModule_AddIntConstant funtion
From: Philip Semanchuk <phi...@semanchuk.com>
Date: Tue, 18 May 2010 11:50:46 -0400
To: "python-list (General)" <python-list@python.org>
- Contents -
On May 18, 2010, at 11:41 AM, Mat
Got it worked with the following change.
PyUnicodeObject *p = ...whatever...;
char* tmp = (char *)p;
PyObject* arg = PyBytes_FromString (tmp);
function( (PyBytesObject*) arg);
>From : MathanK<switch2mat...@gmail.com>
To : "python-list" <python-list@python.org>
Date