[BangPypers] How to compare two PyUnicode objects ?

Kushal Das kushaldas at gmail.com
Tue Jun 14 08:07:36 CEST 2011


Hi,

I am writing a python extension in C. I have two PyObjects of type
PyUnicode. Now I want to compare the values in the both. Which
function I should use for the same ? I was trying PyObject_Compare
from [1] but not the getting the correct result. Any link/example to
read ?

[1] http://docs.python.org/c-api/object.html

Kushal
-- 
http://fedoraproject.org
http://kushaldas.in


More information about the BangPypers mailing list