[Python-Dev] check for PyUnicode_READY look backwards

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Oct 7 06:26:05 CEST 2011


Benjamin Peterson wrote:

> Why not just have it return 0 on error? This would be more consistent with API
> functions that return "false" values like NULL

But that would make it confusingly different from all the other
functions that return ints. The NULL convention is only used
when the function returns a pointer.

-- 
Greg


More information about the Python-Dev mailing list