On 3/29/06, Adam DePrince <[EMAIL PROTECTED]> 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.) | [EMAIL PROTECTED] +--------------------------------------+ _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com