Title: Implement dict to receive Object as key, not only String · Issue #118 · go-python/gpython · GitHub
Open Graph Title: Implement dict to receive Object as key, not only String · Issue #118 · go-python/gpython
X Title: Implement dict to receive Object as key, not only String · Issue #118 · go-python/gpython
Description: gpython/py/dict.go Line 68 in 33327c5 type StringDict map[string]Object Change the dict to receive a hashable object as a key, not just a string. I will change it so that the object can be looked up through the hash value of the object. ...
Open Graph Description: gpython/py/dict.go Line 68 in 33327c5 type StringDict map[string]Object Change the dict to receive a hashable object as a key, not just a string. I will change it so that the object can be looked u...
X Description: gpython/py/dict.go Line 68 in 33327c5 type StringDict map[string]Object Change the dict to receive a hashable object as a key, not just a string. I will change it so that the object can be looked u...
Opengraph URL: https://github.com/go-python/gpython/issues/118
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement dict to receive Object as key, not only String","articleBody":"https://github.com/go-python/gpython/blob/33327c5231b03c84972bec57262694aebbaa1e84/py/dict.go#L68\r\n\r\nChange the dict to receive a hashable object as a key, not just a string.\r\nI will change it so that the object can be looked up through the hash value of the object.\r\n\r\nStore the object in the slice and use the map to find the index of the stored object through the hash value.\r\n```go\r\nmake([]Object, 0, len(default_size)) // slice to store object (index -\u003e Object)\r\ntype Dict map[HashIndex]int // map to store index of slice (Hash -\u003e index)\r\n```\r\n\r\nIs it ok to implement dict this way?","author":{"url":"https://github.com/HyeockJinKim","@type":"Person","name":"HyeockJinKim"},"datePublished":"2019-10-14T03:53:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/118/gpython/issues/118"}
| 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:9e702321-5b3b-59cf-65d3-8c8f798bbaca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9524:359457:D62A39:12BD8E3:696A2EF9 |
| html-safe-nonce | 6dc68b48e8108e07357ccc30b1ee870e641225512918ebe231dd9e1098b24100 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTI0OjM1OTQ1NzpENjJBMzk6MTJCRDhFMzo2OTZBMkVGOSIsInZpc2l0b3JfaWQiOiI2Nzg0MjE2MjI5NTQ0MDc5MDk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9a5a60a97b6d7bcb2aee9307a7152350f72334b5f9f9a64f864040f3940ee2a0 |
| hovercard-subject-tag | issue:506435285 |
| 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/go-python/gpython/118/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8ec73a43ccad754cb09f7fdfff60d719950266031faa15c2ca5588a7e09f1315/go-python/gpython/issues/118 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8ec73a43ccad754cb09f7fdfff60d719950266031faa15c2ca5588a7e09f1315/go-python/gpython/issues/118 |
| og:image:alt | gpython/py/dict.go Line 68 in 33327c5 type StringDict map[string]Object Change the dict to receive a hashable object as a key, not just a string. I will change it so that the object can be looked u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HyeockJinKim |
| hostname | github.com |
| expected-hostname | github.com |
| None | ade130928b3890d20ecf9c887468a17e88d5c9a740ea2a85c2c2162e7c58e623 |
| turbo-cache-control | no-preview |
| go-import | github.com/go-python/gpython git https://github.com/go-python/gpython.git |
| octolytics-dimension-user_id | 7604679 |
| octolytics-dimension-user_login | go-python |
| octolytics-dimension-repository_id | 143203535 |
| octolytics-dimension-repository_nwo | go-python/gpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143203535 |
| octolytics-dimension-repository_network_root_nwo | go-python/gpython |
| 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 | c00842167ca2e5b13e8171812965d503e925ece6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width