Re:Performance Analysis of Python's Dict() and {}
by nerdponx on Monday January 22, 2024 @03:34PM
(#39095032)
dict() can be useful for enforcing (or indicating to the reader) that keys are strings and valid Python identifiers. {} allows arbitrary keys, as long as the data type is hashable.
[ Parent
| on HN ]
There are no comments on this comment yet.