File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ verbosity argument (check the output of ``python --help``)::
468468 print(answer)
469469
470470We 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments