[Tutor] displaying clock and/or elapsed time

2010-05-11 Thread Art Kendall
I am learning python and I want to see how long parts of of a process take. Are there system variables that can just be displayed? how do I get variables that contain the wall time (x) and the elapsed time (y)? I would like to put little messages on the screen while I am developing a python s

Re: [Tutor] Is the difference in outputs with different size input lists due to limits on memory with PYTHON?

2010-05-07 Thread Art Kendall
On 5/6/2010 8:52 PM, Dave Angel wrote: I got my own copy of the papers, at http://thomas.loc.gov/home/histdox/fedpaper.txt I copied your code, and added logic to it to initialize termlist from the actual file. And it does complete the output file at 83 lines, approx 17000 columns per l

Re: [Tutor] Is the difference in outputs with different size input lists due to limits on memory with PYTHON?

2010-05-06 Thread Art Kendall
On 5/6/2010 1:51 PM, Dave Angel wrote: Art Kendall wrote: On 5/6/2010 11:14 AM, Dave Angel wrote: Art Kendall wrote: I am running Windows 7 64bit Home premium. with quad cpus and 8G memory. I am using Python 2.6.2. I have all the Federalist Papers concatenated into one .txt file

Re: [Tutor] Is the difference in outputs with different size input lists due to limits on memory with PYTHON?

2010-05-06 Thread Art Kendall
On 5/6/2010 11:14 AM, Dave Angel wrote: Art Kendall wrote: I am running Windows 7 64bit Home premium. with quad cpus and 8G memory. I am using Python 2.6.2. I have all the Federalist Papers concatenated into one .txt file. Which is how big? Currently you (unnecessarily) load the entire

[Tutor] Is the difference in outputs with different size input lists due to limits on memory with PYTHON?

2010-05-06 Thread Art Kendall
I am running Windows 7 64bit Home premium. with quad cpus and 8G memory. I am using Python 2.6.2. I have all the Federalist Papers concatenated into one .txt file. I want to prepare a file with a row for each paper and a column for each term. The cells would contain the count of a term in t