MySQLdb "begin()" -

shearichard at gmail.com shearichard at gmail.com
Tue Apr 25 09:50:21 EDT 2006


Hi - Feeling a bit weird about this but I cannot find the 'begin'
method on a connection object of MySQLdb. Can anyone explain why ?

I'm using version 1.2.0 which is pretty recent and I've read that
'begin' should be a method of connection but it's not there ! Feeling
pretty puzzled !

Below are the details of what I see ...


>>> import MySQLdb
>>> c= MySQLdb.Connect(host='localhost', user='a',passwd='b', db='c',compress=1)
>>> c.begin()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'Connection' object has no attribute 'begin'
>>> o=MySQLdb
>>> o.__version__
'1.2.0'
>>> o.__revision__
'1.37'
>>> o.apilevel
'2.0'


Be interested in any comments.

regards

Richard.




More information about the Python-list mailing list