8000 Docs: Fix broken reference `__getitem__` in `string.rst` (#103371) · python/cpython@83af8f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 83af8f2

Browse files
authored
Docs: Fix broken reference __getitem__ in string.rst (#103371)
1 parent 63dc969 commit 83af8f2

File tree

1 file changed

+1
-1
lines changed

Doc/library/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ dictionary keys (e.g., the strings ``'10'`` or ``':-]'``) within a format string
235235
The *arg_name* can be followed by any number of index or
236236
attribute expressions. An expression of the form ``'.name'`` selects the named
237237
attribute using :func:`getattr`, while an expression of the form ``'[index]'``
238-
does an index lookup using :func:`__getitem__`.
238+
does an index lookup using :meth:`~object.__getitem__`.
239239

240240
.. versionchanged:: 3.1
241241
The positional argument specifiers can be omitted for :meth:`str.format`,

0 commit comments

Comments
 (0)
0