Re: Flatten a list/tuple and Call a function with tuples

2007-07-25 Thread Aneesh Goel
On Jul 25, 10:33 am, Jeff <[EMAIL PROTECTED]> wrote: > def flatten(obj): > if type(obj) not in (list, tuple, str): > raise TypeError("String, list, or tuple expected in > flatten().") > if len(obj) == 1: > if type(obj[0]) in (tuple, list): > return flatten(obj[0]

pyExcelerator and multiple worksheets

2007-06-11 Thread aneesh . goel . rbtx
I'm using pyExcelerator to take a folder of CSV files and create Excel workbooks for all of them, then generate an Excel workbook with the data from all of them. Everything up until here works great; next, I make a second worksheet on the last workbook which has summary details regarding the previ