[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
Changes by Brandon : -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
Brandon added the comment: Type returned as datetime, I was not familiar with the MySQLdb code. Sorry for the bad report. -- status: open -> closed ___ Python tracker ___ __

Re: [issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread M.-A. Lemburg
On 24.05.2014 15:55, Brandon wrote: > > Observe the following code: > > import MySQLdb, MySQLdb.cursors, datetime > """ ... mysqlCursor is a cursor object from a connection to database from the > MySQLdb module ... """ > mysqlCursor.execute("SELECT NOW()") > timeRow = mysqlCursor.fetchall() > cu

[issue21570] String being confused with datetime.datetime object.

2014-05-24 Thread Brandon
New submission from Brandon: Observe the following code: import MySQLdb, MySQLdb.cursors, datetime """ ... mysqlCursor is a cursor object from a connection to database from the MySQLdb module ... """ mysqlCursor.execute("SELECT NOW()") timeRow = mysqlCursor.fetchall() currentDateTime = datetime