Re: Generator Expressions and CSV

2009-07-17 Thread Jon Clements
On 17 July, 23:57, Zaki wrote: > On Jul 17, 6:40 pm, Jon Clements wrote: > > > > > On 17 July, 21:08, Zaki wrote: > > > > On Jul 17, 2:49 pm, MRAB wrote: > > > > > Zaki wrote: > > > > > Hey all, > > > > > > I'm really new to Python and this may seem like a really dumb > > > > > question, but ba

Re: Generator Expressions and CSV

2009-07-17 Thread Zaki
On Jul 17, 6:40 pm, Jon Clements wrote: > On 17 July, 21:08, Zaki wrote: > > > > > On Jul 17, 2:49 pm, MRAB wrote: > > > > Zaki wrote: > > > > Hey all, > > > > > I'm really new to Python and this may seem like a really dumb > > > > question, but basically, I wrote a script to do the following, h

Re: Generator Expressions and CSV

2009-07-17 Thread Jon Clements
On 17 July, 21:08, Zaki wrote: > On Jul 17, 2:49 pm, MRAB wrote: > > > > > Zaki wrote: > > > Hey all, > > > > I'm really new to Python and this may seem like a really dumb > > > question, but basically, I wrote a script to do the following, however > > > the processing time/memory usage is not wh

Re: Generator Expressions and CSV

2009-07-17 Thread Zaki
On Jul 17, 5:31 pm, MRAB wrote: > Zaki wrote: > > On Jul 17, 2:49 pm, MRAB wrote: > >> Zaki wrote: > >>> Hey all, > >>> I'm really new to Python and this may seem like a really dumb > >>> question, but basically, I wrote a script to do the following, however > >>> the processing time/memory usage

Re: Generator Expressions and CSV

2009-07-17 Thread Emile van Sebille
On 7/17/2009 1:08 PM Zaki said... Here is the final code that I have running. It's very much 'hack' type code and not at all efficient or optimized and any help in optimizing it would be greatly appreciated. There are some things I'd approach differently , eg I might prefer glob to build iNuQ

Re: Generator Expressions and CSV

2009-07-17 Thread MRAB
Zaki wrote: On Jul 17, 2:49 pm, MRAB wrote: Zaki wrote: Hey all, I'm really new to Python and this may seem like a really dumb question, but basically, I wrote a script to do the following, however the processing time/memory usage is not what I'd like it to be. Any suggestions? Outline: 1. Rea

Re: Generator Expressions and CSV

2009-07-17 Thread Zaki
On Jul 17, 2:49 pm, MRAB wrote: > Zaki wrote: > > Hey all, > > > I'm really new to Python and this may seem like a really dumb > > question, but basically, I wrote a script to do the following, however > > the processing time/memory usage is not what I'd like it to be. Any > > suggestions? > > > O

Re: Generator Expressions and CSV

2009-07-17 Thread MRAB
Zaki wrote: Hey all, I'm really new to Python and this may seem like a really dumb question, but basically, I wrote a script to do the following, however the processing time/memory usage is not what I'd like it to be. Any suggestions? Outline: 1. Read tab delim files from a directory, files ar

Re: Generator Expressions and CSV

2009-07-17 Thread Emile van Sebille
On 7/17/2009 10:58 AM Zaki said... Now, I've tried running this and it takes much longer than I'd like. I was wondering if there might be a better way to do things Suppose, for the sake of argument, that you've written highly efficient code. Then the processing time would already be entirel

Generator Expressions and CSV

2009-07-17 Thread Zaki
Hey all, I'm really new to Python and this may seem like a really dumb question, but basically, I wrote a script to do the following, however the processing time/memory usage is not what I'd like it to be. Any suggestions? Outline: 1. Read tab delim files from a directory, files are of 3 types: