[Python-3000] Iterators for dict keys, values, and items == annoying :)
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Mar 30 04:03:05 CEST 2006
On 3/29/06, Adam DePrince <adam.deprince at gmail.com> wrote:
> >>>rs.execute( "select upc, description, price from my_table" )
> >>>data = rs.fetch().fieldby( 'price','upc')
> >>>print type( data )
>
> <MultiViewMapping>
Seems to me it would be a better idea for the DB
module to return tuple-with-attributes objects for
the rows in the first place, rather than plain
tuples.
When I get around to reworking my custom Firebird
module, I'm going to make it do that.
--
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | Carpe post meridiam! |
Christchurch, New Zealand | (I'm not a morning person.) |
greg.ewing at canterbury.ac.nz +--------------------------------------+
More information about the Python-3000
mailing list