Marc-Andre Lemburg <m...@egenix.com> added the comment: On 2008-12-15 16:34, Antoine Pitrou wrote: > Antoine Pitrou <pit...@free.fr> added the comment: > > Le lundi 15 décembre 2008 à 14:41 +0000, Marc-Andre Lemburg a écrit : >> Why have you removed the complete error handling section in >> PyUnicode_RichCompare() ? > > Because the only error that can occur is a TypeError when one of the two > arguments is not an unicode object, and that is handled by returning > Py_NotImplemented at the end. > (there is no implicit bytes -> unicode coercion anymore, and therefore > things are much simpler)
Ah, sorry, just saw that this is just for Py3. The fast-path would probably also make sense for Py2 (keeping the error handling, of course). _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3106> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com