Re: tuple assign variables

2005-08-15 Thread dimitri pater
hi, I'm fond of Greg Stein's dtuple module[1]. I've never used it withMySQL, so YMMV, but using it might look something like: thanks for pointing that out, works like a breeze        self.cursor.execute( "SELECT * FROM customer WHERE name ='sarah'")        descriptor = dtuple.TupleDescriptor(sel

Re: tuple assign variables

2005-08-15 Thread Simon Brunning
On 8/13/05, dimitri pater <[EMAIL PROTECTED]> wrote: > selecting a record from a MySQL database results in a tuple like this: > (('Evelyn', 'Dog', 'No'),) > I want to assign every item of that tuple to a variable using this code > (deep_list is taken from the Python Cookbook): > > def deep_li