mirror of
https://github.com/python/cpython.git
synced 2025-11-03 19:34:08 +00:00
Docs: both sqlite3 "point examples" now adapt to str (#99823)
This commit is contained in:
parent
dfc2732a57
commit
276643e207
1 changed files with 1 additions and 1 deletions
|
|
@ -2105,7 +2105,7 @@ The following example illustrates the implicit and explicit approaches:
|
|||
return f"Point({self.x}, {self.y})"
|
||||
|
||||
def adapt_point(point):
|
||||
return f"{point.x};{point.y}".encode("utf-8")
|
||||
return f"{point.x};{point.y}"
|
||||
|
||||
def convert_point(s):
|
||||
x, y = list(map(float, s.split(b";")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue