mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Move the 3k reST doc tree in place.
This commit is contained in:
parent
739c01d47b
commit
116aa62bf5
423 changed files with 131199 additions and 0 deletions
8
Doc/includes/sqlite3/parse_colnames.py
Normal file
8
Doc/includes/sqlite3/parse_colnames.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import sqlite3
|
||||
import datetime
|
||||
|
||||
con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_COLNAMES)
|
||||
cur = con.cursor()
|
||||
cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
|
||||
dt = cur.fetchone()[0]
|
||||
print(dt, type(dt))
|
Loading…
Add table
Add a link
Reference in a new issue