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
It seems that urrlib2 default redirection does not allow me to handle Cookies. Service I'm trying seems to use IP switcher and session id's with cookies. After successful login it changes session id (PD-H_SESSION-ID) in 302 Moved temporarily. Urllib2 is so clever that it handles redirection but

Re: samba/windows shares (with python?)

2004-12-10 Thread Eino Mäkitalo
I.V. Aprameya Rao wrote: hi does anybody know how to access samba/windows shares on a network? is there any module that does this? i am running linux and i thought of using the mount command to mount that remote share and then access it, but i was wondering whether that is the right way? Apram

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

2004-12-09 Thread Eino Mäkitalo
I had Visual C++ 6.0, so I compiled those libpq.dll and psycopg.pyd. if there are anyone to play with Windows, Python 2.3 and Postgre-8.0.0-beta4 for windows like me. You cat get those from: http://eino.net/html/python.html Original psycopg source code is available in: http://initd.org/projects/ps