Closed sente closed 10 years ago
Keys should always be strings, according to sqlitedict
docs.
Maybe it's better if we raise an exception when user supplies a non-string key, rather than relying on implicit type conversions? I'm not sure.
Either way, I'm -1 on promoting non-string keys directly in the docs. It could remain an undocumented feature if it works.
We could perhaps somehow stress the point that keys are always strings; the wording may be too casual now.
Mentioned in the Readme.rst that db[4] and db['4'] are identical