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

Skip to content

Commit 0995c47

Browse files
committed
Issue #18452: fix several "occurrence" typos (reported by Févry Thibault).
1 parent 889b92d commit 0995c47

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/howto/argparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ verbosity argument (check the output of ``python --help``)::
468468
print(answer)
469469
470470
We have introduced another action, "count",
471-
to count the number of occurences of a specific optional arguments:
471+
to count the number of occurrences of a specific optional arguments:
472472
473473
.. code-block:: sh
474474

Doc/library/configparser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ the :meth:`__init__` options:
539539
* *delimiters*, default value: ``('=', ':')``
540540

541541
Delimiters are substrings that delimit keys from values within a section. The
542-
first occurence of a delimiting substring on a line is considered a delimiter.
542+
first occurrence of a delimiting substring on a line is considered a delimiter.
543543
This means values (but not keys) can contain the delimiters.
544544

545545
See also the *space_around_delimiters* argument to

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,11 +871,11 @@ operations have the same priority as the corresponding numeric operations.
871871
+--------------------------+--------------------------------+----------+
872872
| ``max(s)`` | largest item of *s* | |
873873
+--------------------------+--------------------------------+----------+
874-
| ``s.index(x[, i[, j]])`` | index of the first occurence | \(8) |
874+
| ``s.index(x[, i[, j]])`` | index of the first occurrence | \(8) |
875875
| | of *x* in *s* (at or after | |
876876
| | index *i* and before index *j*)| |
877877
+--------------------------+--------------------------------+----------+
878-
| ``s.count(x)`` | total number of occurences of | |
878+
| ``s.count(x)`` | total number of occurrences of | |
879879
| | *x* in *s* | |
880880
+--------------------------+--------------------------------+----------+
881881

0 commit comments

Comments
 (0)