[DB-SIG] PEP 249

Konjkov Vladimir konjkov.vv at gmail.com
Wed Jan 23 04:12:20 CET 2008


in definition of
.execute(operation[,parameters])
.....
A reference to the operation will be retained by the
cursor. If the same operation object is passed in again,
then the cursor can optimize its behavior.

What meens "the same operation object is passed in again"?
There's no definition for Class Operation.

May by it meens

SameOperation = "something that just a constant!"
C = cnxn.cursor()
C.execute("select * from table where a=? and b=?",(1,2))
C.fetchall()
C.execute(SameOperation,(3,4))
C.fetchall()

or not?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/db-sig/attachments/20080123/eeb2f373/attachment.htm 


More information about the DB-SIG mailing list