8000 doc: Formatting and typo fixes (#98974) · python/cpython@728e42f · GitHub
[go: up one dir, main page]

Skip to content

Commit 728e42f

Browse files
authored
doc: Formatting and typo fixes (#98974)
1 parent d7a00f1 commit 728e42f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Doc/faq/windows.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ How can I embed Python into a Windows application?
167167

168168
Embedding the Python interpreter in a Windows app can be summarized as follows:
169169

170-
1. Do _not_ build Python into your .exe file directly. On Windows, Python must
170+
1. Do **not** build Python into your .exe file directly. On Windows, Python must
171171
be a DLL to handle importing modules that are themselves DLL's. (This is the
172172
first key undocumented fact.) Instead, link to :file:`python{NN}.dll`; it is
173173
typically installed in ``C:\Windows\System``. *NN* is the Python version, a
@@ -191,7 +191,7 @@ Embedding the Python interpreter in a Windows app can be summarized as follows:
191191
2. If you use SWIG, it is easy to create a Python "extension module" that will
192192
make the app's data and methods available to Python. SWIG will handle just
193193
about all the grungy details for you. The result is C code that you link
194-
*into* your .exe file (!) You do _not_ have to create a DLL file, and this
194+
*into* your .exe file (!) You do **not** have to create a DLL file, and this
195195
also simplifies linking.
196196

197197
3. SWIG will create an init function (a C function) whose name depends on the
@@ -218,10 +218,10 @@ Embedding the Python interpreter in a Windows app can be summarized as follows:
218218
5. There are two problems with Python's C API which will become apparent if you
219219
use a compiler other than MSVC, the compiler used to build pythonNN.dll.
220220

221-
Problem 1: The so-called "Very High Level" functions that take FILE *
221+
Problem 1: The so-called "Very High Level" functions that take ``FILE *``
222222
arguments will not work in a multi-compiler environment because each
223-
compiler's notion of a struct FILE will be different. From an implementation
224-
standpoint these are very _low_ level functions.
223+
compiler's notion of a ``struct FILE`` will be different. From an implementation
224+
standpoint these are very low level functions.
225225

226226
Problem 2: SWIG generates the following code when generating wrappers to void
227227
functions:

Doc/reference/grammar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ and `PEG <https://en.wikipedia.org/wiki/Parsing_expression_grammar>`_.
1212
In particular, ``&`` followed by a symbol, token or parenthesized
1313
group indicates a positive lookahead (i.e., is required to match but
1414
not consumed), while ``!`` indicates a negative lookahead (i.e., is
15-
required _not_ to match). We use the ``|`` separator to mean PEG's
15+
required *not* to match). We use the ``|`` separator to mean PEG's
1616
"ordered choice" (written as ``/`` in traditional PEG grammars). See
1717
:pep:`617` for more details on the grammar's syntax.
1818

Doc/reference/simple_stmts.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ statement, of a variable or attribute annotation and an optional assignment stat
330330
annotated_assignment_stmt: `augtarget` ":" `expression`
331331
: ["=" (`starred_expression` | `yield_expression`)]
332332

333-
The difference from normal :ref:`assignment` is that only single target is allowed.
333+
The difference from normal :ref:`assignment` is that only a single target is allowed.
334334

335335
For simple names as assignment targets, if in class or module scope,
336336
the annotations are evaluated and stored in a special class or module
@@ -365,8 +365,8 @@ target, then the interpreter evaluates the target except for the last
365365
IDEs.
366366

367367
.. versionchanged:: 3.8
368-
Now annotated assignments allow same expressions in the right hand side as
369-
the regular assignments. Previously, some expressions (like un-parenthesized
368+
Now annotated assignments allow the same expressions in the right hand side as
369+
regular assignments. Previously, some expressions (like un-parenthesized
370370
tuple expressions) caused a syntax error.
371371

372372

@@ -756,7 +756,7 @@ commas) the two steps are carried out separately for each clause, just
756756
as though the clauses had been separated out into individual import
757757
statements.
758758

759-
The details of the first step, finding and loading modules are described in
759+
The details of the first step, finding and loading modules, are described in
760760
greater detail in the section on the :ref:`import system <importsystem>`,
761761
which also describes the various types of packages and modules that can
762762
be imported, as well as all the hooks that can be used to customize

0 commit comments

Comments
 (0)
0