[python-win32] How to replace the values with keys ?

2008-07-21 Thread Graps Graps
Hi all, I am a newbie to python... I have two text files text1 and text2. Text1 is a tabbed separated file, say like a b a c a d a g b c b d b h c d c h... and so on.. Text2 is a python dictionary containing data as {0: 'a', 1: 'b', 2: 'c'...} now I want the data in text1 to be replaced with t

Re: [python-win32] error in list length

2008-07-21 Thread Larry Bates
knish wrote: Hi, Thank you for your reply. I will remember your point and send the code from the console. BRgds, kNish Larry Bates wrote: kNish wrote: Hi, The following lines of code gives an error starting with line where len() is used local_BkFiles

Re: [python-win32] How to get IWebBrowser2 from a HWND

2008-07-21 Thread salvatore ventura
Hi Mark, thanks for helping out. I have tried the same QueryInterface but this time on the 'main' window (no popup open), this time looking for the 'IEFrame' class, and then following the same steps as in my popup example, but this time, the QueryInterface seems to happily return a 'number'. I

Re: [python-win32] Cannot import "pyodbc" module

2008-07-21 Thread Larry Bates
Tim Golden wrote: Roger Upole wrote: Modules compiled as 32-bit won't work with 64-bit python. If there isn't a 64-bit version of pyodbc, you'll need to stick with 32-bit python (which continues to run well on 64-bit systems). I wonder whether (he says, talking to the air) it would be worth m

Re: [python-win32] Registering 3rd party DLLs

2008-07-21 Thread Larry Bates
Gal Aviel wrote: Hello All, I posted a related question in the py2exe mailing list, only to realize that the issue might be more related to this mailing list ... I'm distributing a python application as a self-contained executable using py2exe. My application relies on several 3rd party DL

Re: [python-win32] sort error

2008-07-21 Thread Larry Bates
kNish wrote: Hi, I have had this issue for long now. Is it possible to have a work around for this. When these commands are run singly, they give a result. When run inside a script, the second line does not give a result. What is a possible work around for this. BkFiles.sort(key=str.upper) las

Re: [python-win32] Cannot import "pyodbc" module

2008-07-21 Thread Tim Golden
Roger Upole wrote: Modules compiled as 32-bit won't work with 64-bit python. If there isn't a 64-bit version of pyodbc, you'll need to stick with 32-bit python (which continues to run well on 64-bit systems). I wonder whether (he says, talking to the air) it would be worth mentioning something

[python-win32] Re: Cannot import "pyodbc" module

2008-07-21 Thread Roger Upole
"siddhartha veedaluru" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, Getting the following error while i install the pyodbc module and import it import pyodbc Traceback (most recent call last): File "", line 1, in import pyodbc ImportError: DLL load failed with error

[python-win32] Cannot import "pyodbc" module

2008-07-21 Thread siddhartha veedaluru
Hi, Getting the following error while i install the pyodbc module and import it >>> import pyodbc Traceback (most recent call last): File "", line 1, in import pyodbc ImportError: DLL load failed with error code 193 i have installed win32it pyodbc module in a x64 Win 2003 os already havin