mirror of https://github.com/python/cpython
[Doc] Fix a typo in optparse.rst (#103504)
This commit is contained in:
parent
c3d015ce62
commit
4e04393b2f
|
@ -2027,7 +2027,7 @@ Features of note:
|
||||||
values.ensure_value(attr, value)
|
values.ensure_value(attr, value)
|
||||||
|
|
||||||
If the ``attr`` attribute of ``values`` doesn't exist or is ``None``, then
|
If the ``attr`` attribute of ``values`` doesn't exist or is ``None``, then
|
||||||
ensure_value() first sets it to ``value``, and then returns 'value. This is
|
ensure_value() first sets it to ``value``, and then returns ``value``. This is
|
||||||
very handy for actions like ``"extend"``, ``"append"``, and ``"count"``, all
|
very handy for actions like ``"extend"``, ``"append"``, and ``"count"``, all
|
||||||
of which accumulate data in a variable and expect that variable to be of a
|
of which accumulate data in a variable and expect that variable to be of a
|
||||||
certain type (a list for the first two, an integer for the latter). Using
|
certain type (a list for the first two, an integer for the latter). Using
|
||||||
|
|
Loading…
Reference in New Issue