Title: `BuiltinFunctionType` and `BuiltinMethodType` are different · Issue #3100 · RustPython/RustPython · GitHub
Open Graph Title: `BuiltinFunctionType` and `BuiltinMethodType` are different · Issue #3100 · RustPython/RustPython
X Title: `BuiltinFunctionType` and `BuiltinMethodType` are different · Issue #3100 · RustPython/RustPython
Description: Feature types.BuiltinFunctionType must be equal to types.BuiltinMethodType. In other word, types returned by builtin function and types returned by builtin method must be of the same type. In CPython >>> import types >>> types.BuiltinFun...
Open Graph Description: Feature types.BuiltinFunctionType must be equal to types.BuiltinMethodType. In other word, types returned by builtin function and types returned by builtin method must be of the same type. In CPyth...
X Description: Feature types.BuiltinFunctionType must be equal to types.BuiltinMethodType. In other word, types returned by builtin function and types returned by builtin method must be of the same type. In CPyth...
Opengraph URL: https://github.com/RustPython/RustPython/issues/3100
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`BuiltinFunctionType` and `BuiltinMethodType` are different","articleBody":"## Feature\r\n\r\n`types.BuiltinFunctionType` must be equal to `types.BuiltinMethodType`.\r\nIn other word, types returned by builtin function and types returned by builtin method must be of the same type.\r\n\r\n### In CPython\r\n```py\r\n>>> import types\r\n>>> types.BuiltinFunctionType == types.BuiltinMethodType\r\nTrue\r\n>>> type(len) == type([].append)\r\nTrue\r\n```\r\n\r\n### In RustPython\r\n```py\r\n>>>>> import types\r\n>>>>> types.BuiltinFunctionType == types.BuiltinMethodType\r\nFalse\r\n>>>>> type(len) == type([].append)\r\nFalse\r\n```\r\n\r\n## Python Documentation\r\n\r\n[BuiltinFunctionType](https://docs.python.org/3/library/types.html#types.BuiltinFunctionType) and [BuiltinMethodType](https://docs.python.org/3/library/types.html#types.BuiltinMethodType) have same descriptions.\r\nAlso, commented at [source code](https://github.com/python/cpython/blob/050d1035957379d70e8601e6f5636637716a264b/Lib/types.py#L44).\r\n","author":{"url":"https://github.com/Tetramad","@type":"Person","name":"Tetramad"},"datePublished":"2021-09-21T12:56:17Z","url":"https://github.com/RustPython/RustPython/issues/3100"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:2b51856f-2bd1-0690-2202-65be798575d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1AC:D33AC:52081C:6E3A05:6B003097 |
| html-safe-nonce | b833bfdf23087b53f6ace42ccad5c904ea970ea52049fa3aa0a3143b9295f24f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUFDOkQzM0FDOjUyMDgxQzo2RTNBMDU6NkIwMDMwOTciLCJ2aXNpdG9yX2lkIjoiODcxNDczNjUyOTQxNjY2MzE5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bbe0878ae1fd5ca08064f7d8cb3f6bce285b671c3e55793f22e5bb9622fcb79a |
| hovercard-subject-tag | issue:1002429083 |
| 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/3100/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3cd62f6dcc6497a93ffa4024ecc217b3851a611f8cd18b723249b620718e1700/RustPython/RustPython/issues/3100 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3cd62f6dcc6497a93ffa4024ecc217b3851a611f8cd18b723249b620718e1700/RustPython/RustPython/issues/3100 |
| og:image:alt | Feature types.BuiltinFunctionType must be equal to types.BuiltinMethodType. In other word, types returned by builtin function and types returned by builtin method must be of the same type. In CPyth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Tetramad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width