Re: MySQLdb question... using table name as arg

2006-02-03 Thread Sean Berry
"Carsten Haese" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2006-02-03 at 13:24, Sean Berry wrote: >> I have four tables that all have the same column names (50 in each.) >> >> I have created an admin program to edit, delete and a

MySQLdb question... using table name as arg

2006-02-03 Thread Sean Berry
I have four tables that all have the same column names (50 in each.) I have created an admin program to edit, delete and add records to the tables and would like to use the table name as a variable in each query so the code can be used for each of the 4 tables. Usually I would do something lik

question about timestamp and MySQLdb

2005-10-19 Thread Sean Berry
I am using MySQLdb to connect to a database and retrieve a timestamp from a table. The problem is I want the timestamp as a long, unformatted and all. In the table I have a timestamp like this 20051019111617 But, when I retrieve the value and print it I get 2005-10-19 11:16:17 I want the nume

Re: best Pythonic way to do this sort: Python newb

2005-10-09 Thread Sean Berry
"Paul Rubin" <http://[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Sean Berry" <[EMAIL PROTECTED]> writes: >> myList = [[value1, value2, value3],[value1, value2, value3], ...] >> >> I have a function which takes value3 from the

best Pythonic way to do this sort: Python newb

2005-10-09 Thread Sean Berry
Hello all I have build a list that contains data in the form below -- simplified for question -- myList = [[value1, value2, value3],[value1, value2, value3], ...] I have a function which takes value3 from the lists above and returns another value. I want to use this returned value to sort the li

Find index of item in list

2004-12-07 Thread Sean Berry
Given myList = ['cat', 'dog', 'mouse' ... 'bear'] what is the easiest way to find out what index 'dog' is at? -- http://mail.python.org/mailman/listinfo/python-list