Guido van Rossum wrote:
Changing the API is the only reasonable solution amongst all the
options I've seen.
I defer to you. Perhaps another approach will surface; in the meantime
I'll start on the API change.
You suggested changing the name as a reminder of the semantics change.
Are you interested in a structural change too? My personal aesthetic
for APIs is to return success/failure separately from output
parameters. So I propose something this:
#define PyUnicode_VALUE(self, p, len)
which would return nonzero on success and zero on failure. If it fails,
p and len would be unchanged.
Let me know what you'd like and I'll make it happen.
Cheers,
/larry/
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com