Re: datetime.datetime and mysql different after python2.3

2011-06-03 Thread Thomas Rachel
Am 01.06.2011 20:42 schrieb Tobiah: I'm grabbing two fields from a MySQLdb connection. One is a date type, and one is a time type. So I put the values in two variables and print them: import datetime date, time = get_fields() # for example print str(type(date)), str((type(time))) print str(date

Re: datetime.datetime and mysql different after python2.3

2011-06-01 Thread Tim Roberts
Tobiah wrote: > >I'm grabbing two fields from a MySQLdb connection. >One is a date type, and one is a time type. > >So I put the values in two variables and print them: >... >In python 2.3.4, I get: > > >2010-07-06 09:20:45.00 > >Put in python2.4 and greater, I get this: > > >2010-07-06 > >So I'

Re: datetime.datetime and mysql different after python2.3

2011-06-01 Thread Tobiah
> import datetime > date, time = get_fields() # for example > print str(type(date)), str((type(time))) > print str(date + time) News reader stripped newlines -- http://mail.python.org/mailman/listinfo/python-list

datetime.datetime and mysql different after python2.3

2011-06-01 Thread Tobiah
I'm grabbing two fields from a MySQLdb connection. One is a date type, and one is a time type. So I put the values in two variables and print them: import datetime date, time = get_fields() # for example print str(type(date)), str((type(time))) print str(date + time) In python 2.3.4, I get: 2