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 @@ -4330,11 +4330,9 @@ type, the :dfn:`dictionary`. (For other containers see the built-in
4330
4330
A dictionary's keys are *almost * arbitrary values. Values that are not
4331
4331
:term: `hashable `, that is, values containing lists, dictionaries or other
4332
4332
mutable types (that are compared by value rather than by object identity) may
4333
- not be used as keys. Numeric types used for keys obey the normal rules for
4334
- numeric comparison: if two numbers compare equal (such as ``1 `` and ``1.0 ``)
4335
- then they can be used interchangeably to index the same dictionary entry. (Note
4336
- however, that since computers store floating-point numbers as approximations it
4337
- is usually unwise to use them as dictionary keys.)
4333
+ not be used as keys.
4334
+ Values that compare equal (such as ``1 ``, ``1.0 ``, and ``True ``)
4335
+ can be used interchangeably to index the same dictionary entry.
4338
4336
4339
4337
.. class :: dict(**kwargs)
4340
4338
dict(mapping, **kwargs)
You can’t perform that action at this time.
0 commit comments