Re: Python 3 vs Python 2.7 dilemma

2011-05-17 Thread Jorge Romero
, 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 -- http://mail.python.org/mailman/listinfo/python-list -- Jorge Romero -- http://mail.python.org/mailman/listinfo

MySQLdb SEC_TO_TIME function returns datetime.timedelta class

2011-05-15 Thread Jorge Romero
fetched[0] 3 days, 7:30:09 print type(fetched[0]) type 'datetime.timedelta' 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 code? Thanks in advanced. -- Jorge Romero -- http://mail.python.org

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 ros...@gmail.com wrote: On Mon, May 16, 2011 at 10:42 AM, Jorge Romero jorgeromero...@gmail.com wrote: Hi Pythonists, I'm retrieving some time data from a MySQL database using Python's MySQLdb library. Here's the situation, I got a time

Python 2.7 Debian 6.0. Squeeze

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

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 jorgeromero...@gmail.comwrote: Hi all, My machine is running Debian Squeeze so my default Python runtime is 2.6.6. According to Python docs