mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Closes #17726: small clarification in design FAQ.
This commit is contained in:
parent
e09596862a
commit
7b8c1324d7
1 changed files with 2 additions and 2 deletions
|
@ -862,8 +862,8 @@ There are several reasons to allow this.
|
|||
|
||||
When you have a literal value for a list, tuple, or dictionary spread across
|
||||
multiple lines, it's easier to add more elements because you don't have to
|
||||
remember to add a comma to the previous line. The lines can also be sorted in
|
||||
your editor without creating a syntax error.
|
||||
remember to add a comma to the previous line. The lines can also be reordered
|
||||
without creating a syntax error.
|
||||
|
||||
Accidentally omitting the comma can lead to errors that are hard to diagnose.
|
||||
For example::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue