Re: Notify of change to list

2008-06-16 Thread Alan J. Salmoni
Paul - thank you very much for your help, it was much appreciated. I thought that this was the kind of thing I had to do. I also messed around with properties to try and solve this problem, but noticed a similar thing (ie, that changing a mutable attribute's element is different to rebinding it):

Notify of change to list

2008-06-12 Thread Alan J. Salmoni
Hello everyone, I searched through groups to find an appropriate answer to this one but could only find these which didn't meet my program's needs: http://groups.google.com/group/comp.lang.python/browse_thread/thread/53a0bfddeedf35b2/5e4b7119afa5f8df?lnk=gst&q=monitor+change+in+mutable#5e4b7119afa

Re: How to get all the variables in a python shell

2008-05-31 Thread Alan J. Salmoni
I'm not certain if this is what you want but try this for the first window: import __main__ localvars = __main__.__dict__ dir(localvars) # lists names of all objects available to the interpreter. And then you can pass localvars anywhere in the program - so after a command is entered in one window

Re: Running an interactive interpreter inside a python

2008-05-14 Thread Alan J. Salmoni
I'm not sure if this is exactly what you're after, but try looking into the 'code' module. It's fairly easy to make an interactive interpreter that runs within your program. If you import your programs variables into __main__.__dict__, you can have access to them which can be funky. You can even o

Re: The Python Papers Edition One

2006-11-27 Thread Alan J. Salmoni
I heartily agree. pdf format has never been much of a problem for me. Now that you have an ISSN, has it been submitted to Google Scholar or other academic indexes? http://scholar.google.com/intl/en/scholar/about.html for Google Scholar http://citeseer.ist.psu.edu/submitDocument.html for Citeseer

Re: Programmatically finding "significant" data points

2006-11-14 Thread Alan J. Salmoni
If the order doesn't matter, you can sort the data and remove x * 0.5 * n where x is the proportion of numbers you want. If you have too many similar values though, this falls down. I suggest you check out quantiles in a good statistics book. Alan. Peter Otten wrote: > erikcw wrote: > > > Hi all

Re: how do "real" python programmers work?

2006-01-13 Thread Alan J. Salmoni
Hi Brian, I'm sure I don't qualify as an "experienced Python programmer", but I write lots of code usually for statistical analysis (via numarray) or for GUI work. The way I work is to use an editor and Idle for interactive testing of small routines. My choice of editor is SciTE. I'll have diffe