+ 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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com