{"action":"closed","issue":{"url":"https://api.github.com/repos/python-zk/kazoo/issues/291","labels_url":"https://api.github.com/repos/python-zk/kazoo/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/python-zk/kazoo/issues/291/comments","events_url":"https://api.github.com/repos/python-zk/kazoo/issues/291/events","html_url":"https://github.com/python-zk/kazoo/issues/291","id":62442935,"number":291,"title":"Lock or RLock ?","user":{"login":"sileht","id":200878,"avatar_url":"https://avatars.githubusercontent.com/u/200878?v=3","gravatar_id":"","url":"https://api.github.com/users/sileht","html_url":"https://github.com/sileht","followers_url":"https://api.github.com/users/sileht/followers","following_url":"https://api.github.com/users/sileht/following{/other_user}","gists_url":"https://api.github.com/users/sileht/gists{/gist_id}","starred_url":"https://api.github.com/users/sileht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sileht/subscriptions","organizations_url":"https://api.github.com/users/sileht/orgs","repos_url":"https://api.github.com/users/sileht/repos","events_url":"https://api.github.com/users/sileht/events{/privacy}","received_events_url":"https://api.github.com/users/sileht/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-17T16:14:40Z","updated_at":"2015-03-18T05:34:20Z","closed_at":"2015-03-18T05:34:20Z","body":"Hi, \r\n\r\nI'm a bit confused about the kind of lock that kazoo implements, it's called Lock, but the documentation said it's a reentrant lock, but when I test it the release() don't look reentrant:\r\n\r\n  lock.acquire() # return True\r\n  lock.acquire() # return True\r\n  lock.release() # release the lock\r\n  lock.release() # should release the lock, but that have been already done by the previous call, code executed between both release() is no more protected by the lock...\r\n\r\nRegards,"}}