Something
public text v1 · immutable>>> import MySQLdb
>>> db=MySQLdb.connect(host='localhost', user='root', db='boxstyle')
>>> c=db.cursor
>>> c.execute('select count(*) from items')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: 'function' object has no attribute 'execute'
>>> c=db.cursor()
>>> c.execute('select count(*) from items')
1L
>>> c.fetchone()
(188L,)
>>>