Skip to content

Commit 2ba913c

Browse files
committed
Clarify dbm docs for sqlite3 array storage bytes example
1 parent 8a34c77 commit 2ba913c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/dbm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ type stored.
150150
* ``db['key'] = True`` stored as ``b'1'`` (:mod:`dbm.sqlite3` only)
151151
* ``db['key'] = False`` stored as ``b'0'`` (:mod:`dbm.sqlite3` only)
152152
* ``db['key'] = memoryview(b'data')`` stored as ``b'data'`` (:mod:`dbm.sqlite3` only)
153-
* ``db['key'] = array.array('i', [1, 2, 3])`` stored as binary data (:mod:`dbm.sqlite3` only)
153+
* ``db['key'] = array.array('i', [1, 2, 3])`` stored as bytes (e.g. on little-endian: ``b'\x01\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00'``) (:mod:`dbm.sqlite3` only)
154154
* ``db['key'] = None`` fails on all backends
155155
* ``db['key'] = [1, 2, 3]`` fails on all backends
156156

0 commit comments

Comments
 (0)