summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-10-04 19:53:50 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-10-04 19:53:50 (GMT)
commit90db9c47dca4d105835386fc57d46472b0836820 (patch)
tree345440b7ef8e54420ff06e87514f0540256e7958 /Include
parent6964f4b790470e1dcefb77d51166268e6676d068 (diff)
downloadcpython-90db9c47dca4d105835386fc57d46472b0836820.zip
cpython-90db9c47dca4d105835386fc57d46472b0836820.tar.gz
cpython-90db9c47dca4d105835386fc57d46472b0836820.tar.bz2
Enable also ptr==ptr optimization in PyUnicode_Compare()
It was already implemented in PyUnicode_RichCompare()
Diffstat (limited to 'Include')
-rw-r--r--Include/unicodeobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 135e469..956bdbd 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -1951,7 +1951,8 @@ PyAPI_FUNC(PyObject *) PyUnicode_Replace(
);
/* Compare two strings and return -1, 0, 1 for less than, equal,
- greater than resp. */
+ greater than resp.
+ Raise an exception and return -1 on error. */
PyAPI_FUNC(int) PyUnicode_Compare(
PyObject *left, /* Left string */