Skip to content

Commit 528a915

Browse files
committed
minor typos in style.rst
1 parent b07cdf4 commit 528a915

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/writing/style.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ passed another value.
109109
Calling a function with keyword arguments can be done in multiple ways in Python,
110110
for example it is possible to follow the order of arguments in the definition without
111111
explicitly naming the arguments, like in ``send('Hello', 'World', 'Cthulhu', 'God')``,
112-
sending a blank carbon copy to God. It would also be possible to name arguments in
112+
sending a blind carbon copy to God. It would also be possible to name arguments in
113113
another order, like in ``send('Hello again', 'World', bcc='God', cc='Cthulhu')``.
114114
Those two possibilities are better avoided without any strong reason to not
115115
follow the syntax that is the closest to the function definition: ``send('Hello',
@@ -140,9 +140,9 @@ any sequence, including iterators, that cannot be unpacked as other sequences.
140140

141141
The **arbitrary keyword argument dictionary** is the last way to pass arguments
142142
to functions. If the function requires an undetermined series of named
143-
arguments, it is possible to used the ``**kwargs`` construct. In the function
143+
arguments, it is possible to use the ``**kwargs`` construct. In the function
144144
body, ``kwargs`` will be a dictionary of all the passed named arguments that
145-
have not been caught be other keyword argument in the function signature.
145+
have not been caught by other keyword arguments in the function signature.
146146

147147
The same caution as in the case of *arbitrary argument list* is necessary, for
148148
similar reasons: these powerful techniques are to be used when there is a
@@ -576,7 +576,7 @@ Line Continuations
576576
When a logical line of code is longer than the accepted limit, you need to
577577
split it over multiple physical lines. Python interpreter will join consecutive
578578
lines if the last character of the line is a backslash. This is helpful
579-
sometime but is preferably avoided, because of its fragility: a white space
579+
sometimes but is preferably avoided, because of its fragility: a white space
580580
added to the end of the line, after the backslash, will break the code and may
581581
have unexpected results.
582582

0 commit comments

Comments
 (0)