Title: intelhex hangs on using `in` operator · Issue #58 · python-intelhex/intelhex · GitHub
Open Graph Title: intelhex hangs on using `in` operator · Issue #58 · python-intelhex/intelhex
X Title: intelhex hangs on using `in` operator · Issue #58 · python-intelhex/intelhex
Description: In python, using the in operator is used to test for membership, thus it would be natural to expect that the following expression is valid to test if the given address is present in the hex. However it hangs of an unknown reason. is_pres...
Open Graph Description: In python, using the in operator is used to test for membership, thus it would be natural to expect that the following expression is valid to test if the given address is present in the hex. Howeve...
X Description: In python, using the in operator is used to test for membership, thus it would be natural to expect that the following expression is valid to test if the given address is present in the hex. Howeve...
Opengraph URL: https://github.com/python-intelhex/intelhex/issues/58
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"intelhex hangs on using `in` operator","articleBody":"In python, using the `in` operator is used to test for membership, thus it would be natural to expect that the following expression is valid to test if the given address is present in the hex. However it hangs of an unknown reason.\r\n\r\n```python\r\n is_present = 0x1000 in ih\r\n```\r\n\r\nThis has a trivial fix by implementing `__contains__`. I have implemented a fix and a test for it in my fork: https://github.com/sveinse/intelhex. Please give notice if a PR is wanted for this. https://github.com/sveinse/intelhex\r\n\r\nhttps://github.com/python-intelhex/intelhex/compare/master...sveinse:intelhex:master","author":{"url":"https://github.com/sveinse","@type":"Person","name":"sveinse"},"datePublished":"2022-07-21T21:39:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/58/intelhex/issues/58"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7a2215f7-67e6-870f-54a1-b37ba303915b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E366:B8C14:3F2A327:55CA2DF:698DE36F |
| html-safe-nonce | 7c6138eb70465571d07d0fdf2c1f2c6b4328a5b0d687321592ebb3a6a77c7648 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzY2OkI4QzE0OjNGMkEzMjc6NTVDQTJERjo2OThERTM2RiIsInZpc2l0b3JfaWQiOiI4NDk1NjcwNzI2MDI3NTAyNDQ3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6dd5762dc9d29863e4d8bbe530bbb76f2c500f3e01c5684c83fa5706ed9e1654 |
| hovercard-subject-tag | issue:1313834643 |
| 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/_view_fragments/issues/show/python-intelhex/intelhex/58/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5813ec9321702b085f04167ae66185dbf232eef9c7b0e8c3c4a420e1e0f1624/python-intelhex/intelhex/issues/58 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5813ec9321702b085f04167ae66185dbf232eef9c7b0e8c3c4a420e1e0f1624/python-intelhex/intelhex/issues/58 |
| og:image:alt | In python, using the in operator is used to test for membership, thus it would be natural to expect that the following expression is valid to test if the given address is present in the hex. Howeve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sveinse |
| hostname | github.com |
| expected-hostname | github.com |
| None | 929d0ce8b653d60df0698366d7e9012f9423ea1bace40816e16e5b007242aae4 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-intelhex/intelhex git https://github.com/python-intelhex/intelhex.git |
| octolytics-dimension-user_id | 55888006 |
| octolytics-dimension-user_login | python-intelhex |
| octolytics-dimension-repository_id | 33128473 |
| octolytics-dimension-repository_nwo | python-intelhex/intelhex |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33128473 |
| octolytics-dimension-repository_network_root_nwo | python-intelhex/intelhex |
| 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 | 5048f761cd42a133ec9ccbf7ca847affc26d4937 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width