piskvorky / sqlitedict

Persistent dict, backed by sqlite3 and pickle, multithread-safe.
Apache License 2.0
1.17k stars 131 forks source link

Update Readme.rst #7

Closed sente closed 10 years ago

sente commented 10 years ago

Mentioned in the Readme.rst that db[4] and db['4'] are identical

piskvorky commented 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.