Skip to content

Commit 8bd529b

Browse files
Fix errors on 3.13
1 parent 07deb59 commit 8bd529b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ The :keyword:`for` statement is used to iterate over the elements of a sequence
154154
(such as a string, tuple or list) or other iterable object:
155155

156156
.. productionlist:: python-grammar
157-
for_stmt: "for" `target_list` "in" `starred_list` ":" `suite`
157+
for_stmt: "for" `target_list` "in" `!starred_list` ":" `suite`
158158
: ["else" ":" `suite`]
159159

160160
The ``starred_list`` expression is evaluated once; it should yield an
@@ -844,7 +844,7 @@ A literal pattern corresponds to most
844844
literal_pattern: `signed_number`
845845
: | `signed_number` "+" NUMBER
846846
: | `signed_number` "-" NUMBER
847-
: | `strings`
847+
: | `!strings`
848848
: | "None"
849849
: | "True"
850850
: | "False"

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ Sets
444444

445445
These represent a mutable set. They are created by the built-in :func:`set`
446446
constructor and can be modified afterwards by several methods, such as
447-
:meth:`add <frozenset.add>`.
447+
:meth:`~set.add`.
448448

449449

450450
Frozen sets

0 commit comments

Comments
 (0)