Mercurial > cpython-lru_cache-weakref
view Doc/includes/sqlite3/execute_1.py @ 51611:dfcf690a67c8 legacy-trunk
Add optional code signing after merging.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Fri, 13 Feb 2009 20:51:48 +0000 |
| parents | c62f6669ae22 |
| children | d2cf730de195 |
line wrap: on
line source
import sqlite3 con = sqlite3.connect("mydb") cur = con.cursor() who = "Yeltsin" age = 72 cur.execute("select name_last, age from people where name_last=? and age=?", (who, age)) print cur.fetchone()
