Skip to content

Commit a9aaedf

Browse files
authored
Add 'C API' to the style guide (#1222)
1 parent f73a918 commit a9aaedf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

documentation/style-guide.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ presentation in the Python documentation.
7474
Other terms and words deserve special mention as well; these conventions should
7575
be used to ensure consistency throughout the documentation:
7676

77+
C API
78+
Python's `API <https://docs.python.org/3/c-api/>`_ used by C programmers
79+
to write extension modules. All caps and unhyphenated.
80+
7781
CPU
7882
For "central processing unit." Many style guides say this should be
7983
spelled out on the first use (and if you must use it, do so!). For

internals/parser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ When a pegen-generated parser detects that an exception is raised, it will
711711
is and it will unwind the stack and report the exception. This means that if a
712712
:ref:`rule action <peg-grammar-actions>` raises an exception all parsing will
713713
stop at that exact point. This is done to allow to correctly propagate any
714-
exception set by calling Python C-API functions. This also includes :exc:`SyntaxError`
714+
exception set by calling Python's C API functions. This also includes :exc:`SyntaxError`
715715
exceptions and this is the main mechanism the parser uses to report custom syntax
716716
error messages.
717717

0 commit comments

Comments
 (0)