[python-win32] Identify unique data from sequence array

2010-12-22 Thread otrov
Hi, I failed in my first idea to solve this problem with matlab/octave, as I just started using this tools for data manipulation, and then thought to try python as more feature rich descriptive language and post this problem to python group I'm subscribed already Let's consider this simple dict

Re: [python-win32] Intenet explorer using PythonWin Help

2010-12-22 Thread Mike Driscoll
On 1:59 PM, Pat McGuire wrote: I am new at programming with Python and am using Pythonwin. I have a couple of questions' 1. The code below after doc.FormName.submit() will navigate to the correct page but if I print the url it shows the url of the page I logged in at. I thought submit wo

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Aahz
On Wed, Dec 22, 2010, otrov wrote: > > I failed in my first idea to solve this problem with matlab/octave, > as I just started using this tools for data manipulation, and then > thought to try python as more feature rich descriptive language and > post this problem to python group I'm subscribed al

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Mike Diehn
I'm a unix guy. That's what we call a sort-uniq operation, after the pipeline we'd use: sort datafile | uniq > uniq-lines.txt. So I google that with python and As Jason Petrone wrote when he withdrew PEP 270 in http://www.python.org/dev/peps/pep-0270/: "creating a sequence without duplic

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread otrov
> I'm a unix guy. That's what we call a sort-uniq operation, after the > pipeline we'd use: sort datafile | uniq > uniq-lines.txt. So I google that > with python and > As Jason Petrone wrote when he withdrew PEP 270 in > http://www.python.org/dev/peps/pep-0270/: > "creating a sequence wi

Re: [python-win32] python-win32 Digest, Vol 93, Issue 26

2010-12-22 Thread Gerard Blais
doc.FormName.submit() > > > > 2. Can you point me to a site that which show me how to access each > > type of form element, i.e. option, hrefs, links, etc > > > > > > Any help is greatly appreciated. > > > > I've heard good things about Mechaniz

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Tim Roberts
otrov wrote: > > Thanks for your reply, but perhaps there is misunderstanding: > > I don't want unique values, but unique sequence (block) of data that is > repeated in array: > > A B C D D D A B C D D D A B C D D D > |_| |_| |_| > | | | >unique

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread otrov
> 1. Start with the first element (call it L) > 2. Scan downwind for an matching element (call it R) > 3. Compare L+1 and R+1 until you find a mismatch -- that's the current > "largest" match. > 4. Repeat from 2 to see if you can find a longer match. Actually, step "4. Repeat from 2...", can be fu

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Tim Roberts
otrov wrote: >> 1. Start with the first element (call it L) >> 2. Scan downwind for an matching element (call it R) >> 3. Compare L+1 and R+1 until you find a mismatch -- that's the current >> "largest" match. >> 4. Repeat from 2 to see if you can find a longer match. > Actually, step "4. Repeat fr

Re: [python-win32] Identify unique data from sequence array

2010-12-22 Thread Aahz
On Wed, Dec 22, 2010, Mike Diehn wrote: > > I'm a unix guy. That's what we call a sort-uniq operation, after the > pipeline we'd use: sort datafile | uniq > uniq-lines.txt. So I google that > with python and Side note: these days if you're using GNU utilities (i.e. you're on Linux or CygWin

Re: [python-win32] Intenet explorer using PythonWin Help

2010-12-22 Thread Tim Roberts
Pat McGuire wrote: > Hi Tim, > > Code is below with psuedo information As I suggested in my first response, your first problem is that you are not waiting for the submit to complete. The IE control is asynchronous; it returns immediately, before the request has actually finished. You need anot

[python-win32] Help with accessing form elements and setting focus.

2010-12-22 Thread Pat McGuire
I am new at programming with Python and am using Pythonwin. Is there a site that will show me how to access each type of form element, i.e. option, hrefs, links or examples of this. Also how to set focus on a form element. Any help is greatly appreciated.