This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients amaury.forgeotdarc, benjamin.peterson, brett.cannon, christian.heimes, georg.brandl, lemburg, mark.dickinson, rhettinger
Date 2008-12-08.23:12:27
SpamBayes Score 0.010248416
Marked as misclassified No
Message-id <1228777948.56.0.25483578685.issue1717@psf.upfronthosting.co.za>
In-reply-to
Content
Marc-Andre, how  do you like a function PyUnicode_Equal() instead of
PyUnicode_Compare()?

The old PyUnicode_Compare() function returns -1 for smaller value and
errors, 0 for equality and +1 for larger value. I find it confusing to
have one function that follows the old PyObject_Compare() behavior.

Instead I'm proposing PyUnicode_Equal() which returns -1 for errors, 0
for unequal and +1 for equal. The function follows the semantic of
http://docs.python.org/c-api/object.html#PyObject_RichCompareBool nicely.

About your proposal for cmp(), where should we put the method? I'm -0.5
on builtins.
History
Date User Action Args
2008-12-08 23:12:28christian.heimessetrecipients: + christian.heimes, lemburg, brett.cannon, georg.brandl, rhettinger, amaury.forgeotdarc, mark.dickinson, benjamin.peterson
2008-12-08 23:12:28christian.heimessetmessageid: <1228777948.56.0.25483578685.issue1717@psf.upfronthosting.co.za>
2008-12-08 23:12:28christian.heimeslinkissue1717 messages
2008-12-08 23:12:27christian.heimescreate