Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a390ec2

Browse filesBrowse files
authored
Resolve reference warnings in faq/programming.rst (#108150)
1 parent c735e79 commit a390ec2
Copy full SHA for a390ec2

File tree

2 files changed

+3
-4
lines changed
Filter options

2 files changed

+3
-4
lines changed

‎Doc/faq/programming.rst

Copy file name to clipboardExpand all lines: Doc/faq/programming.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ There are two factors that produce this result:
454454
(the list), and both ``x`` and ``y`` refer to it.
455455
2) Lists are :term:`mutable`, which means that you can change their content.
456456

457-
After the call to :meth:`~list.append`, the content of the mutable object has
457+
After the call to :meth:`!append`, the content of the mutable object has
458458
changed from ``[]`` to ``[10]``. Since both the variables refer to the same
459459
object, using either name accesses the modified value ``[10]``.
460460

@@ -1397,7 +1397,7 @@ To see why this happens, you need to know that (a) if an object implements an
13971397
:meth:`~object.__iadd__` magic method, it gets called when the ``+=`` augmented
13981398
assignment
13991399
is executed, and its return value is what gets used in the assignment statement;
1400-
and (b) for lists, :meth:`!__iadd__` is equivalent to calling :meth:`~list.extend` on the list
1400+
and (b) for lists, :meth:`!__iadd__` is equivalent to calling :meth:`!extend` on the list
14011401
and returning the list. That's why we say that for lists, ``+=`` is a
14021402
"shorthand" for :meth:`!list.extend`::
14031403

@@ -1903,7 +1903,7 @@ identity tests. This prevents the code from being confused by objects such as
19031903
``float('NaN')`` that are not equal to themselves.
19041904

19051905
For example, here is the implementation of
1906-
:meth:`collections.abc.Sequence.__contains__`::
1906+
:meth:`!collections.abc.Sequence.__contains__`::
19071907

19081908
def __contains__(self, value):
19091909
for v in self:

‎Doc/tools/.nitignore

Copy file name to clipboardExpand all lines: Doc/tools/.nitignore
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ Doc/extending/newtypes.rst
2727
Doc/faq/design.rst
2828
Doc/faq/gui.rst
2929
Doc/faq/library.rst
30-
Doc/faq/programming.rst
3130
Doc/glossary.rst
3231
Doc/howto/descriptor.rst
3332
Doc/howto/enum.rst

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.