-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-118469: Document sqlite3.Binary in module constants #136734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
gh-118469: Document sqlite3.Binary in module constants #136734
Conversation
Doc/library/sqlite3.rst
Outdated
.. data:: Binary | ||
|
||
A type object used to describe columns containing :abbr:`BLOB (Binary Large OBject)` data. | ||
Implemented as an alias for :class:`memoryview`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add "this is" to make it a complete sentence.
- Mention that is the current behavior; we can change it in the future.
Implemented as an alias for :class:`memoryview`. | |
This is currently implemented as an alias for :class:`memoryview`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was not changed and a reason why was not given? I will mark as unresolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer if we leave out implementation details like this from the docs.
Doc/library/sqlite3.rst
Outdated
|
||
.. note:: | ||
|
||
Binary data can also be stored and retrieved using :class:`bytes` objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should say that it can be done via bytes-like objects, not just bytes
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link to the bytes-like glossary item.
- Remove redundant second paragraph about DB-API 2.0 specification - Change 'bytes objects' to 'bytes-like objects' for accuracy - Add 'This is the current behavior' to clarify implementation status
c3d89c2
to
617a148
Compare
Typo Fix Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Updated "This is " to make a complete sentence. Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
gh-118469: Add documentation for sqlite3.Binary
Documents sqlite3.Binary as a memoryview alias for handling BLOB data per DB-API 2.0 specification.
Key additions:
Fixes gh-118469
📚 Documentation preview 📚: https://cpython-previews--136734.org.readthedocs.build/