summaryrefslogtreecommitdiff
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-08-31 06:21:19 +1000
committerTerry Jan Reedy <tjreedy@udel.edu>2019-08-30 16:21:19 -0400
commit39d87b54715197ca9dcb6902bb43461c0ed701a2 (patch)
tree778362acb785069882291e2e39f64fd395d73889 /Modules/_ctypes
parent15119bc2a7e902ae1c6988556c3bef3de87fa789 (diff)
downloadcpython-git-39d87b54715197ca9dcb6902bb43461c0ed701a2.tar.gz
Fix typos mostly in comments, docs and test names (GH-15209)
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/callproc.c2
-rw-r--r--Modules/_ctypes/stgdict.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index bd67c6eeae..85fa79983e 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -110,7 +110,7 @@ static void pymem_destructor(PyObject *ptr)
WinDLL(..., use_last_error=True) swap the system LastError value with the
ctypes private copy.
- The values are also swapped immeditately before and after ctypes callback
+ The values are also swapped immediately before and after ctypes callback
functions are called, if the callbacks are constructed using the new
optional use_errno parameter set to True: CFUNCTYPE(..., use_errno=TRUE) or
WINFUNCTYPE(..., use_errno=True).
diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c
index 235a4d79ad..8709cc5404 100644
--- a/Modules/_ctypes/stgdict.c
+++ b/Modules/_ctypes/stgdict.c
@@ -352,7 +352,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
int big_endian;
/* HACK Alert: I cannot be bothered to fix ctypes.com, so there has to
- be a way to use the old, broken sematics: _fields_ are not extended
+ be a way to use the old, broken semantics: _fields_ are not extended
but replaced in subclasses.
XXX Remove this in ctypes 1.0!