Issue with PyUnicodeObject type variables
Stefan Behnel
stefan_ml at behnel.de
Mon May 17 05:33:40 EDT 2010
gmail, 17.05.2010 11:24:
> 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
Doesn't surprise me at all. Could you make sure this is the code you are
using? Especially the names 'p' and 'path'? And that you are initialising
neither of the two in your code?
Stefan
More information about the Python-list
mailing list