Title: GitHub · Where software is built
Open Graph Title: romilly/quick2wire-python-api
X Title: romilly/quick2wire-python-api
Description: Python API for controlling GPIO and I2C devices connected to the Raspberry Pi - romilly/quick2wire-python-api
Open Graph Description: Python API for controlling GPIO and I2C devices connected to the Raspberry Pi - romilly/quick2wire-python-api
X Description: Python API for controlling GPIO and I2C devices connected to the Raspberry Pi - romilly/quick2wire-python-api
Opengraph URL: https://github.com/romilly/quick2wire-python-api
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The `unregister` in `remove` is being passed the wrong value.","articleBody":"I've copied the method in the issue so it is obvious what I found. The call to the epoll().unregister() is being passed the `source` not the file descriptor or in your case the `fileno` integer value. This is most likely not blowing up because the `source` is actually a long int (memory address) itself, but nothing is getting unregistered either. The Python docs indicate that both `register` and `unregister` should take as their 1st argument `fd` (file descriptor).\n\n```\n def remove(self, source):\n \"\"\"Removes an event source from the Selector.\n\n Arguments:\n source -- the event source to remove.\n \"\"\"\n fileno = source.fileno()\n self._get_epoll().unregister(source)\n del self._sources[fileno]\n```\n","author":{"url":"https://github.com/cnobile2012","@type":"Person","name":"cnobile2012"},"datePublished":"2014-05-02T13:21:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/53/quick2wire-python-api/issues/53"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:d0c47292-7290-b8dd-471c-e8c3d7400fa6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8168:327857:8F950C:C642A0:696A772B |
| html-safe-nonce | cc92d9ca8147858f9fda0fed625cf86dea21e5bc481198df7546955fa026259b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTY4OjMyNzg1Nzo4Rjk1MEM6QzY0MkEwOjY5NkE3NzJCIiwidmlzaXRvcl9pZCI6IjM1NDE0NDE5MDU4OTI2ODU2MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9d6a228cd09cd45728473b7925433beac000e6b95aceabedacfcdd89bdf54ed6 |
| hovercard-subject-tag | repository:4207383 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/romilly/quick2wire-python-api/issues/53 |
| twitter:image | https://opengraph.githubassets.com/1e0782feee5084f6f82d07c1e920c5a75931d06d59da9f61a79c4d7bb544fe27/romilly/quick2wire-python-api |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e0782feee5084f6f82d07c1e920c5a75931d06d59da9f61a79c4d7bb544fe27/romilly/quick2wire-python-api |
| og:image:alt | Python API for controlling GPIO and I2C devices connected to the Raspberry Pi - romilly/quick2wire-python-api |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5b774e44f85c14a75886edd04ddda4e5a25ddebbb241bcbb590b08a3048730e8 |
| turbo-cache-control | no-cache |
| go-import | github.com/romilly/quick2wire-python-api git https://github.com/romilly/quick2wire-python-api.git |
| octolytics-dimension-user_id | 149310 |
| octolytics-dimension-user_login | romilly |
| octolytics-dimension-repository_id | 4207383 |
| octolytics-dimension-repository_nwo | romilly/quick2wire-python-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4207383 |
| octolytics-dimension-repository_network_root_nwo | romilly/quick2wire-python-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cc5f4eee261b3601c1e98e217ceaf28508b9567e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width