Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5d68ac

Browse files
committed
Fix misspelling.
1 parent f342bfc commit e5d68ac

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/c-api/conversion.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ The following functions provide locale-independent string to number conversions.
8383

8484
.. cfunction:: char * PyOS_stricmp(char *s1, char *s2)
8585

86-
Case insensitive comparsion of strings. The functions works almost
86+
Case insensitive comparison of strings. The functions works almost
8787
identical to :cfunc:`strcmp` except that it ignores the case.
8888

8989

9090
.. cfunction:: char * PyOS_strnicmp(char *s1, char *s2, Py_ssize_t size)
9191

92-
Case insensitive comparsion of strings. The functions works almost
92+
Case insensitive comparison of strings. The functions works almost
9393
identical to :cfunc:`strncmp` except that it ignores the case.

Objects/bytearrayobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ bytes_richcompare(PyObject *self, PyObject *other, int op)
947947
PyObject_IsInstance(other, (PyObject*)&PyUnicode_Type)) {
948948
if (Py_BytesWarningFlag && op == Py_EQ) {
949949
if (PyErr_WarnEx(PyExc_BytesWarning,
950-
"Comparsion between bytearray and string", 1))
950+
"Comparison between bytearray and string", 1))
951951
return NULL;
952952
}
953953

Objects/bytesobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ string_richcompare(PyBytesObject *a, PyBytesObject *b, int op)
818818
PyObject_IsInstance((PyObject*)b,
819819
(PyObject*)&PyUnicode_Type))) {
820820
if (PyErr_WarnEx(PyExc_BytesWarning,
821-
"Comparsion between bytes and string", 1))
821+
"Comparison between bytes and string", 1))
822822
return NULL;
823823
}
824824
result = Py_NotImplemented;

0 commit comments

Comments
 (0)