Re: Tracking down memory leaks?

2006-02-12 Thread MKoool
> How big is the file you are reading in? If it is (say) 400 MB, then it is > hardly surprising that you will be using 500MB of RAM. If the file is 25K, > that's another story. Actually, I am downloading the matrix data from a file on a server on the net using urllib2, and then I am running severa

Tracking down memory leaks?

2006-02-12 Thread MKoool
I have an application with one function called "compute", which given a filename, goes through that file and performs various statistical analyses. It uses arrays extensively and loops alot. it prints the results of it's statistical significance tests to standard out. Since the compute function

Array construction from object members

2005-12-31 Thread MKoool
Hi everyone, I am doing several operations on lists and I am wondering if python has anything built in to get every member of several objects that are in an array, for example, if i have a class like the following: class myClass: a = 0.0 And lets say I populate the "a" element in an array of

Best library for basic stats

2005-12-29 Thread MKoool
Is there any decent library for basic stats? I am just looking for the basics, like quartiles, median, standard deviation, mean, min, max, regression, etc. I was going to use SciPy, but I use Python 2.4, and it seems to be supported primarily for 2.3... What other statistical packages have any l

Filtering out non-readable characters

2005-07-15 Thread MKoool
I have a file with binary and ascii characters in it. I massage the data and convert it to a more readable format, however it still comes up with some binary characters mixed in. I'd like to write something to just replace all non-printable characters with '' (I want to delete non-printable chara

Re: stdout and stderr showing output only after script is done

2005-05-29 Thread MKoool
sorry i meant i installed python version 2.4.1, thanks MKoool wrote: > I just installed python 2.4 for windows. I was using the cygwin > version previously, but wanted to use the official python 2.4 release > to install a module that reads off some registry entries. > > After in

Re: stdout and stderr showing output only after script is done

2005-05-29 Thread MKoool
sorry, i'm an idoit who just found that i should use the -u option, my bad -- http://mail.python.org/mailman/listinfo/python-list

stdout and stderr showing output only after script is done

2005-05-29 Thread MKoool
I just installed python 2.4 for windows. I was using the cygwin version previously, but wanted to use the official python 2.4 release to install a module that reads off some registry entries. After installing, I did what I normally do, ssh to my local windows machine, and run the python script I