mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Docs: both sqlite3 "point examples" now adapt to str (GH-99823)
(cherry picked from commit 276643e207
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
366adc7c83
commit
f160996412
1 changed files with 1 additions and 1 deletions
|
@ -1991,7 +1991,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