Re: win32com problem

2006-10-24 Thread Aries Sun
Have you tried late binding? Does late binding produce the same error? Regards, Aries [EMAIL PROTECTED] wrote: > I'm interacting with a third party application using python and com. > However having problems and don't know what to look at next to resolve > the issue. > > The app. can be driven b

Re: Consecutive Character Sequences

2005-07-14 Thread Aries Sun
Hi George, Here's the result: >>> [list(group) for _,group in it.groupby("taaypiqee88adbbba")] [['t'], ['a', 'a'], ['y'], ['p'], ['i'], ['q'], ['e', 'e'], ['8', '8'], ['a'], ['d'], ['b', 'b', 'b'], ['a']] >>> [len(list(group)) for _,group in it.groupby("taaypiqee88adbbba")] [1, 2, 1, 1, 1, 1, 2, 2

Re: Consecutive Character Sequences

2005-07-14 Thread Aries Sun
Hi George, I used Python 2.4.1, the following are the command lines. But the reslut was still False. Is there anything wrong with below codes? >>> import itertools as it >>> def hasConsequent(aString, minConsequent): for _,group in it.groupby(aString): if len(list(group)) >

Re: Consecutive Character Sequences

2005-07-14 Thread Aries Sun
f hasConsequent(aString, minConsequent): for ch in aString: result = findall(ch*minConsequent, aString) if len(result) >= 1: return True return False >>> hasConsequent(s, 2) True >>> hasConsequent(s, 3) True >&g