File tree 1 file changed +5
-4
lines changed 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4823,7 +4823,11 @@ can be used interchangeably to index the same dictionary entry.
4823
4823
being added is already present, the value from the keyword argument
4824
4824
replaces the value from the positional argument.
4825
4825
4826
- To illustrate, the following examples all return a dictionary equal to
4826
+ Providing keyword arguments as in the first example only works for keys that
4827
+ are valid Python identifiers. Otherwise, any valid keys can be used.
4828
+
4829
+ To illustrate dictionary creation and equality,
4830
+ the following examples all return a dictionary equal to
4827
4831
``{"one": 1, "two": 2, "three": 3} ``::
4828
4832
4829
4833
>>> a = dict(one=1, two=2, three=3)
@@ -4835,9 +4839,6 @@ can be used interchangeably to index the same dictionary entry.
4835
4839
>>> a == b == c == d == e == f
4836
4840
True
4837
4841
4838
- Providing keyword arguments as in the first example only works for keys that
4839
- are valid Python identifiers. Otherwise, any valid keys can be used.
4840
-
4841
4842
Dictionaries preserve insertion order. Note that updating a key does not
4842
4843
affect the order. Keys added after deletion are inserted at the end. ::
4843
4844
You can’t perform that action at this time.
0 commit comments