Title: Special methods · Issue #6658 · RustPython/RustPython · GitHub
Open Graph Title: Special methods · Issue #6658 · RustPython/RustPython
X Title: Special methods · Issue #6658 · RustPython/RustPython
Description: Feature Using Class.dict.get() will wrap special methods. I noticed this when trying to update the http module. Example: class TestClass: def __new__(cls, value, phrase, description=''): pass RustPython >>>>> TestClass.__dict__.get("__ne...
Open Graph Description: Feature Using Class.dict.get() will wrap special methods. I noticed this when trying to update the http module. Example: class TestClass: def __new__(cls, value, phrase, description=''): pass RustP...
X Description: Feature Using Class.dict.get() will wrap special methods. I noticed this when trying to update the http module. Example: class TestClass: def __new__(cls, value, phrase, description=''): pa...
Opengraph URL: https://github.com/RustPython/RustPython/issues/6658
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Special methods","articleBody":"## Feature\n\nUsing Class.__dict__.get() will wrap special methods. I noticed this when trying to update the http module.\n\n## Example:\n```\nclass TestClass:\n def __new__(cls, value, phrase, description=''):\n pass\n````\n\n**RustPython**\n```\n\u003e\u003e\u003e\u003e\u003e TestClass.__dict__.get(\"__new__\")\n\u003cfunction TestClass.__new__ at 0x55cee9f8f810\u003e\n```\n\n**CPython**\n```\n\u003e\u003e\u003e TestClass.__dict__.get(\"__new__\")\n\u003cstaticmethod(\u003cfunction TestClass.__new__ at 0x7f6444dd4ea0\u003e)\u003e\n```\n\n## Python Documentation or reference to CPython source code\nhttps://docs.python.org/3/reference/datamodel.html#object.__new__","author":{"url":"https://github.com/terryluan12","@type":"Person","name":"terryluan12"},"datePublished":"2026-01-05T20:41:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6658/RustPython/issues/6658"}
| 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:3638b3ba-02d0-2858-be93-60de2b5fdb07 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8090:1478A3:A3BB7:E638B:696A0234 |
| html-safe-nonce | c3a8e63f6941cabff9695f66557d36a44a418aa513f5737eb12c08007b2e06af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDkwOjE0NzhBMzpBM0JCNzpFNjM4Qjo2OTZBMDIzNCIsInZpc2l0b3JfaWQiOiI0NzQyNjIxNDY5NzYzODMwMzI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cecdcc273bd82a4213f3f74f55373172b91689aa7378859a71af1d884d631319 |
| hovercard-subject-tag | issue:3782802309 |
| 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/6658/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d81b45fbe99a3fb53d0643f39951785488fdc8add22c40c21b450ef6d110697/RustPython/RustPython/issues/6658 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d81b45fbe99a3fb53d0643f39951785488fdc8add22c40c21b450ef6d110697/RustPython/RustPython/issues/6658 |
| og:image:alt | Feature Using Class.dict.get() will wrap special methods. I noticed this when trying to update the http module. Example: class TestClass: def __new__(cls, value, phrase, description=''): pass RustP... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | terryluan12 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc |
| 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 | 671c2f67171dbced24284331f3133a613d08c366 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width