Dynamic Lists, or...?

2005-06-11 Thread Lorn
escriptor names. Could anyonw give any suggestions on how to best approach this problem, hopefully I've been clear enough? Any help would be very gratly appreciated. Best regards, Lorn -- http://mail.python.org/mailman/listinfo/python-list

Re: String manipulations

2005-05-28 Thread Lorn
Thank you Elliot, this solution is the one I was trying to come up with. Thank you for your help and thank you to everyone for their suggestions. Best regards, Lorn -- http://mail.python.org/mailman/listinfo/python-list

Re: String manipulations

2005-05-28 Thread Lorn
Yes, that would get rid of the decimals... but it wouldn't get rid of the extraneous precision. Unfortunately, the precision out to the ten thousandth is noise... I don't need to round it either as the numbers are artifacts of an integer to float conversion. Basically, I need to know how many decim

String manipulations

2005-05-28 Thread Lorn
ould be nice to stay away from a bunch of if then's. Does anyone have any ideas on how to do this more efficiently? Many Thanks, Lorn -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory errors with large zip files

2005-05-20 Thread Lorn
ify how my code is approaching this or perhaps how the zipfile code is handling it or do I need to just invest in more RAM? I currently have 512 MB and thought that would be plenty perhaps I was wrong :-(. If anyone has any ideas it would truly be very helpful. Lorn -- http://mail.python.org/mailm

Memory errors with large zip files

2005-05-20 Thread Lorn
or comments on how I might be able to work with zip files of this size would be very helpful. Best regards, Lorn -- http://mail.python.org/mailman/listinfo/python-list

Re: Extracting multiple zip files in a directory

2005-05-19 Thread Lorn
Ok, I probably should have seen this coming. Working with small zip files is no problem with the above script. However, when opening a 120+ MB compressed file that uncompresses to over 1GB, I unfortunately get memory errors. Is this because python is holding the extracted file in memory, as opposed

Re: Extracting multiple zip files in a directory

2005-05-18 Thread Lorn
Thanks John, this works great! Was wondering what your reasoning is behind replacing "filter" with the x for x statement? Appreciate the help, thanks again. Lorn -- http://mail.python.org/mailman/listinfo/python-list

Extracting multiple zip files in a directory

2005-05-18 Thread Lorn
I've been working on this code somewhat succesfully, however I'm unable to get it to iterate through all the zip files in the directory. As of now it only extracts the first one it finds. If anyone could lend some tips on how my iteration scheme should look, it would be hugely appreciated. Here is

Re: Working with Huge Text Files

2005-03-19 Thread Lorn Davies
" would entail both having to be true before continuing and "x or y" would mean either could be true before continuing. Python, unless I'm misunderstanding (very possible), doesn't organize it as such. I thought of perhaps using a set of if, elif, else statements for processing the fileds, but didn't think that would be the most elegant/efficient solution. Anyway, any critiques/ideas are welcome... they'll most definitely help me understand this language a bit better. Thank you all again for your great replies and thank you Chirag for getting me up and going. Lorn -- http://mail.python.org/mailman/listinfo/python-list

Working with Huge Text Files

2005-03-18 Thread Lorn Davies
r a newbie? I really hope not. I've been looking at simpleParse, but it's a bit intense at first glance... not sure where to start, or even if I need to go that route. Any help from you guys in what direction to go or how to approach this would be hugely appreciated. Best reg