mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Move the 2.6 reST doc tree in place.
This commit is contained in:
parent
f56181ff53
commit
8ec7f65613
445 changed files with 136056 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