Issue with PyUnicodeObject type variables

gmail switch2mathan at gmail.com
Mon May 17 05:24:07 EDT 2010


A variable whose data type is PyUnicodeObject checked whether it is a UnicodeObject type.
Got output as false

example :

PyUnicodeObject *p; 

if (PyUnicode_Check(path)) {
        printf("\nTrue.\n");
        
}
else {
        printf("\nfalse.\n");
}

output: false


Confused what went wrong.

regards
mathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100516/acea7247/attachment.html>


More information about the Python-list mailing list