Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef6074b

Browse filesBrowse files
authored
Insert missing apostrophes in ctypes documentation (#115090)
1 parent c688c0f commit ef6074b
Copy full SHA for ef6074b

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎Doc/library/ctypes.rst

Copy file name to clipboardExpand all lines: Doc/library/ctypes.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ calls).
200200
Python objects that can directly be used as parameters in these function calls.
201201
``None`` is passed as a C ``NULL`` pointer, bytes objects and strings are passed
202202
as pointer to the memory block that contains their data (:c:expr:`char *` or
203-
:c:expr:`wchar_t *`). Python integers are passed as the platforms default C
203+
:c:expr:`wchar_t *`). Python integers are passed as the platform's default C
204204
:c:expr:`int` type, their value is masked to fit into the C type.
205205

206206
Before we move on calling functions with other parameter types, we have to learn
@@ -1445,7 +1445,7 @@ function exported by these libraries, and reacquired afterwards.
14451445
All these classes can be instantiated by calling them with at least one
14461446
argument, the pathname of the shared library. If you have an existing handle to
14471447
an already loaded shared library, it can be passed as the ``handle`` named
1448-
parameter, otherwise the underlying platforms :c:func:`!dlopen` or
1448+
parameter, otherwise the underlying platform's :c:func:`!dlopen` or
14491449
:c:func:`!LoadLibrary` function is used to load the library into
14501450
the process, and to get a handle to it.
14511451

@@ -1456,7 +1456,7 @@ configurable.
14561456

14571457
The *use_errno* parameter, when set to true, enables a ctypes mechanism that
14581458
allows accessing the system :data:`errno` error number in a safe way.
1459-
:mod:`ctypes` maintains a thread-local copy of the systems :data:`errno`
1459+
:mod:`ctypes` maintains a thread-local copy of the system's :data:`errno`
14601460
variable; if you call foreign functions created with ``use_errno=True`` then the
14611461
:data:`errno` value before the function call is swapped with the ctypes private
14621462
copy, the same happens immediately after the function call.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.