Title: Improve CPython compatibility related with PyBoundMethod by moreal · Pull Request #7476 · RustPython/RustPython · GitHub
Open Graph Title: Improve CPython compatibility related with PyBoundMethod by moreal · Pull Request #7476 · RustPython/RustPython
X Title: Improve CPython compatibility related with PyBoundMethod by moreal · Pull Request #7476 · RustPython/RustPython
Description: This pull request adjusts PyBoundMethod for compatibility with CPython.
Behavior changes
Correct PyBoundMethod initialization validation
Implement missing __get__
Raise error when __name__ when calling PyBoundMethod __reduce__
class A:
def f(): ...
class B:
def __call__(self): ...
print(type(A().f)(B(), 1).__reduce__())
CPython (3.14.3)
>>> class A:
... def f(): ...
...
>>> A().f
Open Graph Description: This pull request adjusts PyBoundMethod for compatibility with CPython. Behavior changes Correct PyBoundMethod initialization validation Implement missing __get__ Raise error when __name__ when ca...
X Description: This pull request adjusts PyBoundMethod for compatibility with CPython. Behavior changes Correct PyBoundMethod initialization validation Implement missing __get__ Raise error when __name__ when ca...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7476
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1c7c3014-3d15-72f3-4dc9-56d9ca18c6c1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E804:174610:3174DF:40A662:6A5FEE82 |
| html-safe-nonce | 835c301765fad350735b47abb7cc9f0521ac0aae0c6d0382a991343a93dfc10f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODA0OjE3NDYxMDozMTc0REY6NDBBNjYyOjZBNUZFRTgyIiwidmlzaXRvcl9pZCI6IjEyNTg2MjY2NjQ1MDAyOTMyNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 257935708c4e7ff83db9a896ba1fa5a71ea46f924d580aec5fb865f7a8cc7122 |
| hovercard-subject-tag | pull_request:3425082909 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/RustPython/RustPython/pull/7476/files |
| twitter:image | https://avatars.githubusercontent.com/u/26626194?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/26626194?s=400&v=4 |
| og:image:alt | This pull request adjusts PyBoundMethod for compatibility with CPython. Behavior changes Correct PyBoundMethod initialization validation Implement missing __get__ Raise error when __name__ when ca... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba296ecd3a3521238fe43b3b3b08cc09207ddc21173e16ee656db03803de8e2b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6e50fb37e29e4aa0df6386cb485e58b0e3ca97ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width