Re: Bug in py32win manual for file_locking for Python 2.4

2004-12-04 Thread Nick Coghlan
Pekka Niiranen wrote: However, using highbits=0x7fff # equals hex(sys.maxint) gives no errors, but does locking work if highbits are not exactly 0x? Try using highbits=-0x7fff as your mask. That should set the MSB without tripping over the sys.maxint limit. Cheers, Nick. -- http:/

Bug in py32win manual for file_locking for Python 2.4

2004-12-04 Thread Pekka Niiranen
Hi, I tried to lock file in w2k using example directly from pyWin32 manual: #-- >>> import pywintypes >>> ov=pywintypes.OVERLAPPED() #used to indicate starting region to lock >>> highbits=0x >>> file="c:wilma.txt" >>> import win32file >>> import win32security >>> import win3