Re: [sqlalchemy] namedTuple with conflicting attributes

2013-01-21 Thread Kenny Billiau
On Fri Jan 18 15:40:25 2013, Simon King wrote: On 18 Jan 2013, at 12:15, Kenny bill...@mpimp-golm.mpg.de wrote: Hey all, I'm quite new to SQLAlchemy and I've been struggling to get the following to work. When one queries with specific entities, the resulting namedTuples might have

Re: [sqlalchemy] namedTuple with conflicting attributes

2013-01-21 Thread Michael Bayer
On Jan 21, 2013, at 7:33 AM, Kenny Billiau wrote: On Fri Jan 18 15:40:25 2013, Simon King wrote: On 18 Jan 2013, at 12:15, Kenny bill...@mpimp-golm.mpg.de wrote: Hey all, I'm quite new to SQLAlchemy and I've been struggling to get the following to work. When one queries with

[sqlalchemy] namedTuple with conflicting attributes

2013-01-18 Thread Kenny
Hey all, I'm quite new to SQLAlchemy and I've been struggling to get the following to work. When one queries with specific entities, the resulting namedTuples might have overlapping keys. e.g. sample = session.query( Sample.id, Experiment.id ).\

Re: [sqlalchemy] namedTuple with conflicting attributes

2013-01-18 Thread Simon King
On 18 Jan 2013, at 12:15, Kenny bill...@mpimp-golm.mpg.de wrote: Hey all, I'm quite new to SQLAlchemy and I've been struggling to get the following to work. When one queries with specific entities, the resulting namedTuples might have overlapping keys. e.g. sample =