[pywin32-bugs] [ pywin32-Bugs-1063508 ] LockFileEx does not return outcome of lock operation
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-11-10 08:22:10
|
Bugs item #1063508, was opened at 2004-11-10 11:24 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1063508&group_id=78018 Category: win32 Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Submitted By: Jody Burns (jodyburns) Assigned to: Nobody/Anonymous (nobody) Summary: LockFileEx does not return outcome of lock operation Initial Comment: When win32file.LockFileEx is called, it returns None instead of the success/failure of the lock operation. When used with non-blocking locks it is impossible to tell if a lock has succeeded or not. I have attached a program demonstrating this behavior. When the program is run, it attempts to lock itself but has no way of knowing it the lock succeeded. ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2004-11-10 19:22 Message: Logged In: YES user_id=14198 Like most other pywin32 functions, this one raises an exception of the API call fails. The operation succeeded if it did not raise win32file.error. Let me know (and re-open the bug) if I misunderstood. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1063508&group_id=78018 |