Title: `dict_keys`, `dict_values`, and `dict_items` are missing several methods · Issue #2898 · RustPython/RustPython · GitHub
Open Graph Title: `dict_keys`, `dict_values`, and `dict_items` are missing several methods · Issue #2898 · RustPython/RustPython
X Title: `dict_keys`, `dict_values`, and `dict_items` are missing several methods · Issue #2898 · RustPython/RustPython
Description: Feature CPython: >>> dir(dict().keys()) ['__and__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__'...
Open Graph Description: Feature CPython: >>> dir(dict().keys()) ['__and__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__...
X Description: Feature CPython: >>> dir(dict().keys()) ['__and__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '...
Opengraph URL: https://github.com/RustPython/RustPython/issues/2898
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`dict_keys`, `dict_values`, and `dict_items` are missing several methods","articleBody":"## Feature\r\n\r\nCPython:\r\n\r\n```python\r\n\u003e\u003e\u003e dir(dict().keys())\r\n['__and__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__or__', '__rand__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__ror__', '__rsub__', '__rxor__', '__setattr__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__xor__', 'isdisjoint']\r\n```\r\n\r\nRustPython:\r\n\r\n```python\r\n\u003e\u003e\u003e\u003e\u003e dir(dict().keys())\r\n['__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__len__', '__lt__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__setattr__', '__str__', '__subclasshook__']\r\n```\r\n\r\nDiff: \r\n- `'__contains__'`\r\n- `'__and__'`\r\n- `'__rxor__'`\r\n- `'isdisjoint'`\r\n- `'__or__'`\r\n- `'__rand__'` \r\n- `'__ror__'` \r\n- `'__xor__'`\r\n- `'__rsub__'`\r\n- `'__sub__'`\r\n- `'__sizeof__'`\r\n\r\nThe same is for `dict_values` and `dict_items`","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2021-08-16T18:58:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/2898/RustPython/issues/2898"}
| 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:a17c3e58-769f-a161-41c1-1af759f30e94 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7B8:BAB60:6720FC:85E2DB:696AE9D9 |
| html-safe-nonce | 1f925096fcd5497a9c0bd2b6f47bfcec4ab9b3477849783113f6159c5a063bc2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0I4OkJBQjYwOjY3MjBGQzo4NUUyREI6Njk2QUU5RDkiLCJ2aXNpdG9yX2lkIjoiNDIxMDY4OTI1NDc1ODIxNDEwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8b34f6775cbe56aa78d4959ecd573c58c16aff44cee85f9a632209346a920c72 |
| hovercard-subject-tag | issue:972014801 |
| 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/RustPython/RustPython/2898/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe4dda74023d8bf79f287436668c1d0ce6ece42d0a2a386d6793d4d5141e3c45/RustPython/RustPython/issues/2898 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe4dda74023d8bf79f287436668c1d0ce6ece42d0a2a386d6793d4d5141e3c45/RustPython/RustPython/issues/2898 |
| og:image:alt | Feature CPython: >>> dir(dict().keys()) ['__and__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width