{"action":"created","issue":{"url":"https://api.github.com/repos/vpelletier/python-libusb1/issues/14","repository_url":"https://api.github.com/repos/vpelletier/python-libusb1","labels_url":"https://api.github.com/repos/vpelletier/python-libusb1/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/vpelletier/python-libusb1/issues/14/comments","events_url":"https://api.github.com/repos/vpelletier/python-libusb1/issues/14/events","html_url":"https://github.com/vpelletier/python-libusb1/issues/14","id":145953493,"number":14,"title":"Hang on cleanup","user":{"login":"astronouth7303","id":401438,"avatar_url":"https://avatars.githubusercontent.com/u/401438?v=3","gravatar_id":"","url":"https://api.github.com/users/astronouth7303","html_url":"https://github.com/astronouth7303","followers_url":"https://api.github.com/users/astronouth7303/followers","following_url":"https://api.github.com/users/astronouth7303/following{/other_user}","gists_url":"https://api.github.com/users/astronouth7303/gists{/gist_id}","starred_url":"https://api.github.com/users/astronouth7303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astronouth7303/subscriptions","organizations_url":"https://api.github.com/users/astronouth7303/orgs","repos_url":"https://api.github.com/users/astronouth7303/repos","events_url":"https://api.github.com/users/astronouth7303/events{/privacy}","received_events_url":"https://api.github.com/users/astronouth7303/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-04-05T10:50:37Z","updated_at":"2016-04-10T08:35:51Z","closed_at":"2016-04-10T08:35:51Z","body":"While tracking down an [issue in another project](https://github.com/fidian/bonkers/issues/4), I wrote [this script](https://gist.github.com/astronouth7303/d5cea052a0b33e423b312ddbd1c00441) and found that it hangs in `libusb_unlock_events()` (called from `libusb_close()`).\r\n\r\nI'm running Arch Linux current.\r\n* Python: 3.5.1\r\n* libusb: 1.0.20-1\r\n* python-libusb1 (from pip): 1.4.1\r\n* Kernel: 4.4.5-1 x64\r\n\r\nThe C program I based this script on does not hang, but probably does things slightly different."},"comment":{"url":"https://api.github.com/repos/vpelletier/python-libusb1/issues/comments/207944529","html_url":"https://github.com/vpelletier/python-libusb1/issues/14#issuecomment-207944529","issue_url":"https://api.github.com/repos/vpelletier/python-libusb1/issues/14","id":207944529,"user":{"login":"vpelletier","id":191204,"avatar_url":"https://avatars.githubusercontent.com/u/191204?v=3","gravatar_id":"","url":"https://api.github.com/users/vpelletier","html_url":"https://github.com/vpelletier","followers_url":"https://api.github.com/users/vpelletier/followers","following_url":"https://api.github.com/users/vpelletier/following{/other_user}","gists_url":"https://api.github.com/users/vpelletier/gists{/gist_id}","starred_url":"https://api.github.com/users/vpelletier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpelletier/subscriptions","organizations_url":"https://api.github.com/users/vpelletier/orgs","repos_url":"https://api.github.com/users/vpelletier/repos","events_url":"https://api.github.com/users/vpelletier/events{/privacy}","received_events_url":"https://api.github.com/users/vpelletier/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T08:35:51Z","updated_at":"2016-04-10T08:35:51Z","body":"Thanks for testing, this change is now released as part of version 1.5.0, uploaded to pypi.\r\n\r\nAbout documentation, although I am not too happy with the current documentation I'm also not sure of the form it should take and what to put in it. I like pydoc, and tried to put informative docstrings to all public API. I am worried by documentation rot if it gets any further away from the actual code (I only updated the examples in README in my last pre-upload amend), and also try to not duplicate libusb's documentation. Any idea is welcome."}}