File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -4370,11 +4370,9 @@ type, the :dfn:`dictionary`. (For other containers see the built-in
4370
4370
A dictionary's keys are *almost * arbitrary values. Values that are not
4371
4371
:term: `hashable `, that is, values containing lists, dictionaries or other
4372
4372
mutable types (that are compared by value rather than by object identity) may
4373
- not be used as keys. Numeric types used for keys obey the normal rules for
4374
- numeric comparison: if two numbers compare equal (such as ``1 `` and ``1.0 ``)
4375
- then they can be used interchangeably to index the same dictionary entry. (Note
4376
- however, that since computers store floating-point numbers as approximations it
4377
- is usually unwise to use them as dictionary keys.)
4373
+ not be used as keys.
4374
+ Values that compare equal (such as ``1 ``, ``1.0 ``, and ``True ``)
4375
+ can be used interchangeably to index the same dictionary entry.
4378
4376
4379
4377
.. class :: dict(**kwargs)
4380
4378
dict(mapping, **kwargs)
You can’t perform that action at this time.
0 commit comments