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
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
Hello,
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_list(x):
if type(x)!=type( () ):
return x
return