Question about file handles and windows handles @ Windows Operating Systems

2007-05-08 Thread eino
.CreateFile( ff,win32con.GENERIC_READ| win32con.GENERIC_WRITE,win32con.FILE_SHARE_READ| win32con.FILE_SHARE_WRITE,None, win32con.OPEN_ALWAYS,win32con.FILE_ATTRIBUTE_NORMAL , 0 ) hfile.handle returns 88 Are there any function to get windows handle of file which is already opened with built-in file-function.

Python 2.4 and os.open question?

2005-01-11 Thread Eino Mäkitalo
I just test in Windows XP with Python 2.4 I'd like to create a file with exclusive flag. If file exist I try to use it, if not I'd like to create it. Python (and underlying library) works differently with/without O_EXCL flag. Is this okay. How I should use this. Has somebody manual

Re: Python 2.4 and os.open question?

2005-01-11 Thread Eino Mäkitalo
Antoon Pardon wrote: Why? What is it about the exclusive flag that makes you like to use it? Ok. Thanks, I misunderstood the meaning of flag. What I' like to do is to open file and keep it exclusive locked for me. Apparently this flag is not for me. Eino Mäkitalo -- http://mail.python.org/ma

Re: urllib2 and Set-Cookie with "302 Moved temporarily"

2004-12-13 Thread Eino Mäkitalo
Fredrik Lundh wrote: "Eino Mäkitalo" <[EMAIL PROTECTED]> wrote: # this is ugly Yes, but short and easy. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

urllib2 and Set-Cookie with "302 Moved temporarily"

2004-12-13 Thread Eino Mäkitalo
ection but with wrong cookies. Some hookings? Just own version from source. What is the most lazy way to handle this. Older urllib? Eino - HTTP/1.x 302 Moved Temporarily Set-Cookie: BIGipServerWWW511_HTTP_Pool=1829440010.20480.; expires=Mon, 13-Dec-2004 11:55:59

Re: samba/windows shares (with python?)

2004-12-10 Thread Eino Mäkitalo
? Aprameya With python, CIFS client for python? If not, try smbclient Eino -- http://mail.python.org/mailman/listinfo/python-list

Psycopg 1.1.17 compiled binaries for windows, postgre 8.0.0-beta4 and python 2.3

2004-12-09 Thread Eino Mäkitalo
/psycopg1 I looking forward to see how much easier it will be with python 2.4 (free compiler), and psycopg2 (supporting python datetime etc). Eino -- http://mail.python.org/mailman/listinfo/python-list