3 ms·
> PythonLanguage: everything is a writable, string-indexed dictionary. What do you mean? Unicode or Bytes? Or Both?
by est 7y ago
> PythonLanguage: everything is a writable, string-indexed dictionary.
What do you mean? Unicode or Bytes? Or Both?
- ChrisSD 7y agoIn python a dictionary key can be any `hashable` object. In practice this means almost any immutable type can be used (e.g. unicode strings, bytes, tuples, etc). However, unicode strings are by far the most common dictionary key and the core language uses them extensively.