8000 Address Berker's comments from gh-271: move __len__ doc to class desc… · erlend-aasland/cpython@69a5a1e · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 69a5a1e

Browse files
author
Erlend E. Aasland
committed
Address Berker's comments from pythongh-271: move __len__ doc to class description
1 parent 2590112 commit 69a5a1e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Doc/library/sqlite3.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,8 @@ Blob Objects
11121112
.. class:: Blob
11131113

11141114
A :class:`Blob` instance is a :term:`file-like object` that can read and write
1115-
data in an SQLite :abbr:`BLOB (Binary Large OBject)`.
1115+
data in an SQLite :abbr:`BLOB (Binary Large OBject)`. Call ``len(blob)`` to
1116+
get the size (number of bytes) of the blob.
11161117

11171118
.. method:: close()
11181119

@@ -1122,10 +1123,6 @@ Blob Objects
11221123
:class:`~sqlite3.Error` (or subclass) exception will be raised if any
11231124
further operation is attempted with the blob.
11241125

1125-
.. method:: __len__()
1126-
1127-
Return the blob size in bytes.
1128-
11291126
.. method:: read(length=-1, /)
11301127

11311128
Read *length* bytes of data from the blob at the current offset position.

0 commit comments

Comments
 (0)
0