Re: [sqlalchemy] Should RowProxy behave as a standard Python sequence?

2016-01-24 Thread Mike Bayer
On 01/24/2016 11:11 AM, Lele Gaifax wrote: > Hi all, > > I'm a bit surprised to see the following: > > >>> r = c.execute(q, idtask=reception_presence_05_01.idtask).fetchall() > >>> type(r[-1]) > > >>> r[-1] > (datetime.datetime(2016, 5, 1, 18, 0), datetime.datetime(2016, 5, 1, 22, 0)

[sqlalchemy] Should RowProxy behave as a standard Python sequence?

2016-01-24 Thread Lele Gaifax
Hi all, I'm a bit surprised to see the following: >>> r = c.execute(q, idtask=reception_presence_05_01.idtask).fetchall() >>> type(r[-1]) >>> r[-1] (datetime.datetime(2016, 5, 1, 18, 0), datetime.datetime(2016, 5, 1, 22, 0)) >>> r[-1][0] datetime.datetime(2016, 5, 1, 18, 0) >>> r