mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
[Doc] Fix a typo in optparse.rst (#103504)
This commit is contained in:
parent
c3d015ce62
commit
4e04393b2f
1 changed files with 1 additions and 1 deletions
|
|
@ -2027,7 +2027,7 @@ Features of note:
|
|||
values.ensure_value(attr, value)
|
||||
|
||||
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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue