[Python-Dev] check for PyUnicode_READY look backwards (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Fri Oct 7 06:26:05 CEST 2011
- Previous message: [Python-Dev] check for PyUnicode_READY look backwards
- Next message: [Python-Dev] check for PyUnicode_READY look backwards
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] check for PyUnicode_READY look backwards
- Next message: [Python-Dev] check for PyUnicode_READY look backwards
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]