3 ms·
Of course, for anything except string keys, that isn't even an option.
by paulddraper 3y ago
Of course, for anything except string keys, that isn't even an option.
- coldtea 3y agoNo 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.
- paulddraper 3y agoIs 1 a integer or a string?
- coldtea 3y agoIt's an integer (in the, not supported, format I show as something Python could have supported). And if they wanted a string, they'd do it like: dict("1"=5, 6=7, 7="aaa")