Title: Fix member_descriptor to match CPython behavior by youknowone · Pull Request #6915 · RustPython/RustPython · GitHub
Open Graph Title: Fix member_descriptor to match CPython behavior by youknowone · Pull Request #6915 · RustPython/RustPython
X Title: Fix member_descriptor to match CPython behavior by youknowone · Pull Request #6915 · RustPython/RustPython
Description: descriptor.rs: Add objclass, name (pymember) and reduce (pymethod) Add type check (descr_check) in descr_get; simplify None branch Remove incorrect BASETYPE flag Add MemberKind::Object (_Py_T_OBJECT = 6) Prevent Bool slot deletion (TypeError) Raise AttributeError on ObjectEx deletion when already None pyclass.rs (derive-impl): Remove duplicate MemberKind enum; use MemberKindStr (Option) Simplify MemberNursery map key from (String, MemberKind) to String Support #[pymember(type="object")] for _Py_T_OBJECT semantics Summary by CodeRabbit New Features Added support for Object member kind in the descriptor system New descriptor introspection methods: objclass and name Enabled pickling support for descriptors via reduce method Improvements Enhanced validation and error handling for descriptor member access Improved type checking when accessing descriptor members on instances ✏️ Tip: You can customize this high-level summary in your review settings.
Open Graph Description: descriptor.rs: Add objclass, name (pymember) and reduce (pymethod) Add type check (descr_check) in descr_get; simplify None branch Remove incorrect BASETYPE flag Add MemberKind::Object (_Py_T_OBJE...
X Description: descriptor.rs: Add objclass, name (pymember) and reduce (pymethod) Add type check (descr_check) in descr_get; simplify None branch Remove incorrect BASETYPE flag Add MemberKind::Object (_Py_T_OBJE...
Opengraph URL: https://github.com/RustPython/RustPython/pull/6915
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:325f1b7c-a3a6-e073-1544-2d63731f2045 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DF2E:87D81:7DE30D:A6C519:6A598EB5 |
| html-safe-nonce | 07e55b9344733168bce34cf5db9666115dd06c5225491609d9aa260d3ad22083 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjJFOjg3RDgxOjdERTMwRDpBNkM1MTk6NkE1OThFQjUiLCJ2aXNpdG9yX2lkIjoiMjIzOTY1Nzk5MDE2ODM1MDM4OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 780540a49d7302ccb5b5b9c5a25a6e9589e2dc7d2f9bb627865e152c065874ea |
| hovercard-subject-tag | pull_request:3230842059 |
| 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/6915/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | descriptor.rs: Add objclass, name (pymember) and reduce (pymethod) Add type check (descr_check) in descr_get; simplify None branch Remove incorrect BASETYPE flag Add MemberKind::Object (_Py_T_OBJE... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| 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 | 624bb50a7497aa346bef8cc3743af408a9ea10ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width