Re: Python 3 vs Python 2.7 dilemma

2011-05-17 Thread Jorge Romero
one. > > My question to everyone is whether I should go ahead with this approach, or > should I just use 2.x technology? I am not sure if I will be able to port > all the code to python3 later. > > I will really appreciate any input. > > Thanks and regards, > Navkirat

Re: MySQLdb SEC_TO_TIME function returns datetime.timedelta class

2011-05-15 Thread Jorge Romero
On Sun, May 15, 2011 at 11:50 PM, Chris Angelico wrote: > On Mon, May 16, 2011 at 10:42 AM, Jorge Romero > wrote: > > Hi Pythonists, > > I'm retrieving some time data from a MySQL database using Python's > MySQLdb > > library. Here's the situation, I go

MySQLdb SEC_TO_TIME function returns datetime.timedelta class

2011-05-15 Thread Jorge Romero
OM table" >>> fetched = cursor.execute(query) >>> print fetched[0] 3 days, 7:30:09 >>> print type(fetched[0]) Instead of *datetime.timedelta *I need *datetime.time *type. Does anybody knows how to change this behavior or is it something I must deal with my cod

Re: Python 2.7 Debian 6.0. Squeeze

2011-05-12 Thread Jorge Romero
instances, so might helpful for someone in the same position. Any further help feel free to reply. Cheers. On Thu, May 12, 2011 at 11:27 AM, Jorge Romero wrote: > Hi all, > > My machine is running Debian Squeeze so my default Python runtime is 2.6.6. > > According to Python docs *op

Python 2.7 Debian 6.0. Squeeze

2011-05-12 Thread Jorge Romero
g 2.7 on Debian? Thanks in advanced. -- Jorge Romero -- http://mail.python.org/mailman/listinfo/python-list