Mercurial > cpython-lru_cache-weakref
view Doc/includes/sqlite3/execute_3.py @ 50784:65c1938fb9ff legacy-trunk
#1162154: inspect.getmembers() now skips attributes that raise AttributeError,
e.g. a __slots__ attribute which has not been set.
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Tue, 13 Jan 2009 23:39:22 +0000 |
| parents | c62f6669ae22 |
| children |
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=:who and age=:age", locals()) print cur.fetchone()
