Skip to content

Commit 7ea9719

Browse files
committed
Add initial Doc for sequence protocol
1 parent 877e9e6 commit 7ea9719

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/sqlite3.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,9 @@ Blob Objects
847847
.. class:: Blob
848848

849849
A :class:`Blob` instance can read and write the data in the
850-
:abbr:`BLOB (Binary Large OBject)`.
850+
:abbr:`BLOB (Binary Large OBject)`. The :class:`Blob` object implement both
851+
the file and sequence protocol. For example You can read data from the
852+
:class:`Blob` by doing ``obj.read(5)`` or by doing ``obj[:5]``.
851853

852854
.. method:: Blob.close()
853855

0 commit comments

Comments
 (0)