summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>2022-04-30 15:01:37 (GMT)
committerGitHub <noreply@github.com>2022-04-30 15:01:37 (GMT)
commit9ea9078ec715ffc92c10c61321f3b1184fa3cac9 (patch)
treee9a3f8c3730b34e3a02a846924ebe766aa5e6f07 /Doc/includes
parente91dee87edcf6dee5dd78053004d76e5f05456d4 (diff)
downloadcpython-9ea9078ec715ffc92c10c61321f3b1184fa3cac9.zip
cpython-9ea9078ec715ffc92c10c61321f3b1184fa3cac9.tar.gz
cpython-9ea9078ec715ffc92c10c61321f3b1184fa3cac9.tar.bz2
gh-92019: Make sqlite3.Blob indexing conform with the norm (#92020)
- get index now returns an int - set index now requires an int in range(0, 256) Resolves #92019
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/sqlite3/blob.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/includes/sqlite3/blob.py b/Doc/includes/sqlite3/blob.py
index d947059..ff58d6c 100644
--- a/Doc/includes/sqlite3/blob.py
+++ b/Doc/includes/sqlite3/blob.py
@@ -9,8 +9,8 @@ with con.blobopen("test", "blob_col", 1) as blob:
blob.write(b"hello, ")
blob.write(b"world.")
# Modify the first and last bytes of our blob
- blob[0] = b"H"
- blob[-1] = b"!"
+ blob[0] = ord("H")
+ blob[-1] = ord("!")
# Read the contents of our blob
with con.blobopen("test", "blob_col", 1) as blob: