Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4a2b36

Browse files
committed
Issue #27745: Fix some typos in Argument Clinic howto, by Lele Gaifax
1 parent 3cf0b25 commit b4a2b36

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/howto/clinic.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ can *only* be used with positional-only parameters.
653653
Functions that use *any* other approach for parsing arguments
654654
should *almost never* be converted to Argument Clinic using
655655
optional groups. Functions using optional groups currently
656-
cannot have accurate sigantures in Python, because Python just
656+
cannot have accurate signatures in Python, because Python just
657657
doesn't understand the concept. Please avoid using optional
658658
groups wherever possible.
659659

@@ -1337,7 +1337,7 @@ every line of Clinic's generated output.
13371337

13381338
While changing Clinic's output in this manner can be a boon to readability,
13391339
it may result in Clinic code using types before they are defined, or
1340-
your code attempting to use Clinic-generated code befire it is defined.
1340+
your code attempting to use Clinic-generated code before it is defined.
13411341
These problems can be easily solved by rearranging the declarations in your file,
13421342
or moving where Clinic's generated code goes. (This is why the default behavior
13431343
of Clinic is to output everything into the current block; while many people
@@ -1381,7 +1381,7 @@ Let's start with defining some terminology:
13811381

13821382
``buffer``
13831383
A text buffer where you can save text for later. Text sent
1384-
here is appended to the end of any exsiting text. It's an
1384+
here is appended to the end of any existing text. It's an
13851385
error to have any text left in the buffer when Clinic finishes
13861386
processing a file.
13871387

@@ -1653,7 +1653,7 @@ undefined, this turns into nothing.
16531653

16541654
However, this causes one ticklish problem: where should Argument Clinic put this
16551655
extra code when using the "block" output preset? It can't go in the output block,
1656-
because that could be decativated by the ``#ifdef``. (That's the whole point!)
1656+
because that could be deactivated by the ``#ifdef``. (That's the whole point!)
16571657

16581658
In this situation, Argument Clinic writes the extra code to the "buffer" destination.
16591659
This may mean that you get a complaint from Argument Clinic::

0 commit comments

Comments
 (0)