Re: Spam? Re: whizBase vs. Python

2009-07-02 Thread Nils Rüttershoff
NurAzije wrote: > On Jun 29, 11:04 am, Tim Harig wrote: > >> On 2009-06-29, NurAzije wrote: >> >> >>> Hi, >>> I am working on a study and I need expert opinion, I did not work with >>> Python before, can anyone help me with a comparison betweenWhizBase >>> (www.whizbase.com) and Python pl

Re: performance problem with time.strptime()

2009-07-02 Thread Nils Rüttershoff
Hi Casey Casey Webster wrote: > On Jul 2, 7:30 am, Nils Rüttershoff wrote: > > >> Rec = >> re.compile(r"^\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\s-\s\d+\s\[(\d{2}/\w+/\d{4}:\d{2}:\d{2}:\d{2})\s\+\d{4}\].*") >> Line = '1.2.3.4 - 4459 [02/Jul/20

performance problem with time.strptime()

2009-07-02 Thread Nils Rüttershoff
Hi everyone, In my free time I translate scripts from open source projects or write my own, to train my python skills. ATM I convert the aplogmerge.pl from awstats. It merges multiple apache logfiles and sort the output by the timestamps of each line. My first version of this script hasn't a good

Re: seeking thru a file

2009-06-26 Thread Nils Rüttershoff
Hi Mag, Mag Gam wrote: > I have a compressed CSV gziped file. I was wondering if it is possible > to seek thru a file > > For example: > > I want to load the first 100 lines into an array. Process the data > > Seek from 101 line to 200 lines. Process the data (remove lines 0 - > 100) from memory >