mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
set items in dict displays from left to right (closes #24569)
This commit is contained in:
parent
1554b17856
commit
d5d77aac60
3 changed files with 14 additions and 6 deletions
|
@ -128,6 +128,9 @@ Dict display element unpacking
|
|||
... for i in range(1000)) + "}"))
|
||||
1000
|
||||
|
||||
>>> {0:1, **{0:2}, 0:3, 0:4}
|
||||
{0: 4}
|
||||
|
||||
List comprehension element unpacking
|
||||
|
||||
>>> a, b, c = [0, 1, 2], 3, 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue