Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
diff --git a/Modules/_ctypes/ctypes.h b/Modules/_ctypes/ctypes.h
index 394534b..b21fe92 100644
--- a/Modules/_ctypes/ctypes.h
+++ b/Modules/_ctypes/ctypes.h
@@ -276,7 +276,7 @@
StgDictObject function to a generic one.
Currently, PyCFuncPtr types have 'converters' and 'checker' entries in their
- type dict. They are only used to cache attributes from other entries, whihc
+ type dict. They are only used to cache attributes from other entries, which
is wrong.
One use case is the .value attribute that all simple types have. But some
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c
index 443a486..75b3a3d 100644
--- a/Modules/_hashopenssl.c
+++ b/Modules/_hashopenssl.c
@@ -820,7 +820,7 @@
/*
* This macro generates constructor function definitions for specific
* hash algorithms. These constructors are much faster than calling
- * the generic one passing it a python string and are noticably
+ * the generic one passing it a python string and are noticeably
* faster than calling a python new() wrapper. Thats important for
* code that wants to make hashes of a bunch of small strings.
*/
diff --git a/Modules/_io/iobase.c b/Modules/_io/iobase.c
index 5f7b345..2fec7e8 100644
--- a/Modules/_io/iobase.c
+++ b/Modules/_io/iobase.c
@@ -71,7 +71,7 @@
return NULL;
}
-/* Positionning */
+/* Positioning */
PyDoc_STRVAR(iobase_seek_doc,
"Change stream position.\n"
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index ee44cab..8362983 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -1096,7 +1096,7 @@
return code;
}
-/* Replace any occurances of "\r\n?" in the input string with "\n".
+/* Replace any occurrences of "\r\n?" in the input string with "\n".
This converts DOS and Mac line endings to Unix line endings.
Also append a trailing "\n" to be compatible with
PyParser_SimpleParseFile(). Returns a new reference. */