Re:Performance Analysis of Python's Dict() and {}
by paulddraper on Monday January 22, 2024 @06:31PM
(#39097080)
Of course, for anything except string keys, that isn't even an option.
[ Parent
| on HN ]
Re:Performance Analysis of Python's Dict() and {}
by coldtea on Monday January 22, 2024 @07:27PM
(#39097625)
No great reason it couldn't be though:
dict(1=5, 6=7, 7="aaa")
dict(hashableInstance="foo", anotherHashableInstance=23, (1,5)=8)
except Python syntax choices of course.
Re:Performance Analysis of Python's Dict() and {}
by paulddraper on Monday January 22, 2024 @08:49PM
(#39098466)
Is 1 a integer or a string?