.. cfunction:: char * PyOS_stricmp(char *s1, char *s2)
- Case insensitive comparsion of strings. The functions works almost
+ Case insensitive comparison of strings. The functions works almost
identical to :cfunc:`strcmp` except that it ignores the case.
.. cfunction:: char * PyOS_strnicmp(char *s1, char *s2, Py_ssize_t size)
- Case insensitive comparsion of strings. The functions works almost
+ Case insensitive comparison of strings. The functions works almost
identical to :cfunc:`strncmp` except that it ignores the case.
PyObject_IsInstance(other, (PyObject*)&PyUnicode_Type)) {
if (Py_BytesWarningFlag && op == Py_EQ) {
if (PyErr_WarnEx(PyExc_BytesWarning,
- "Comparsion between bytearray and string", 1))
+ "Comparison between bytearray and string", 1))
return NULL;
}
PyObject_IsInstance((PyObject*)b,
(PyObject*)&PyUnicode_Type))) {
if (PyErr_WarnEx(PyExc_BytesWarning,
- "Comparsion between bytes and string", 1))
+ "Comparison between bytes and string", 1))
return NULL;
}
result = Py_NotImplemented;