This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年07月11日 07:52 by toymachine, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue3339.diff | mishok13, 2008年07月11日 08:12 | |||
| Messages (3) | |||
|---|---|---|---|
| msg69539 - (view) | Author: Henk Punt (toymachine) | Date: 2008年07月11日 07:52 | |
Class LockType always seems to be returning None if waitflag is not specified. If you look up the documentation for the non dummy lock in lib ref 15.3.1 , none of the possible results should be ‘None’, in fact it would always return True, except when non-block is specified And another thread is already holding the lock then it would return False From the docs on acquire(): Acquire a lock, blocking or non-blocking. When invoked without arguments, block until the lock is unlocked, then set it to locked, and return true. When invoked with the blocking argument set to true, do the same thing as when called without arguments, and return true. When invoked with the blocking argument set to false, do not block. If a call without an argument would block, return false immediately; otherwise, do the same thing as when called without arguments, and return true. |
|||
| msg69540 - (view) | Author: Andrii V. Mishkovskyi (mishok13) | Date: 2008年07月11日 08:12 | |
Seems like inconsistency to me, this simple patch should fix it. |
|||
| msg69605 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2008年07月13日 01:21 | |
r64903-64905 have the fixes for trunk, 3.0, and 2.5, respectively. Thanks for reporting this, Henk. Andrii, I never even looked at your patch since while I was evaluating the bug the problem was rather obvious and simple, as you said. =) Thanks for the work, though. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:36 | admin | set | github: 47589 |
| 2008年07月13日 01:22:01 | brett.cannon | set | resolution: accepted -> fixed |
| 2008年07月13日 01:21:45 | brett.cannon | set | status: open -> closed resolution: accepted messages: + msg69605 |
| 2008年07月11日 16:32:08 | brett.cannon | set | assignee: brett.cannon nosy: + brett.cannon |
| 2008年07月11日 08:12:03 | mishok13 | set | files:
+ issue3339.diff keywords: + patch messages: + msg69540 nosy: + mishok13 |
| 2008年07月11日 07:52:34 | toymachine | create | |