Seems like there should be…
Right now it just seems like magic that you can hash multidimensionally to the same table, without any negative effects.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the dictionary’s perspective, there’s not a single thing multi-dimensional about it. The dictionary has no idea that you are interpreting the keys as describing an n-space.
You could, for example, cleverly pack your vector into a string which would seem less magical, be more complicated to get right, and yet be functionally equivalent. Python strings are Yet Another Immutable Sequence as far as the interpreter is concerned.
There is no negative effect.
Some tasks might be less efficient than an alternate implementation. For example if you are using
(x, y, z)coordinates as keys, finding all points at somezwill be time consuming relative to a real multi-dimensional store. But sometimes clarity and ease of implementation and reading trump efficient store.