[Python-Dev] [Python-checkins] cpython: Fix find_module_path(): make the string ready

"Martin v. Löwis" martin at v.loewis.de
Thu Oct 6 16:10:20 CEST 2011


> +    if (PyUnicode_READY(path_unicode))
> +        return -1;
> +

I think we need to discuss/reconsider the return value of 
PyUnicode_READY. It's defined to give -1 on error currently.
If that sounds good, then the check for error should be a check
that it is -1.

Regards,
Martin


More information about the Python-Dev mailing list