Title: Mark wrapper descriptors as method descriptors by youknowdot · Pull Request #9286 · RustPython/RustPython · GitHub
Open Graph Title: Mark wrapper descriptors as method descriptors by youknowdot · Pull Request #9286 · RustPython/RustPython
X Title: Mark wrapper descriptors as method descriptors by youknowdot · Pull Request #9286 · RustPython/RustPython
Description: Summary Mark wrapper_descriptor as METHOD_DESCRIPTOR, matching CPython 3.15.0. This is the isolated descriptor-flag hunk from the Python 3.15 upgrade work, not the wrapper lifetime/GC changes tracked separately in #8944. The flag allows existing method lookup paths to retain the descriptor and prepend the receiver rather than allocate a bound wrapper. The existing direct, bound and vectorcall paths already perform the same receiver validation and slot argument dispatch. The only Lib change removes one obsolete RustPython expected-failure marker from test_monitoring.TestLoadSuperAttr.test_vs_other_type_call, regenerated through update_lib from pinned CPython 3.15.0. All canonical assertions and other local adaptations are preserved. Validation Fresh dedicated-target CLI build with freeze-stdlib passed. All 3,631 tracked source/symlink hashes matched before and after the build. Two selected unchanged canonical methods passed on main baseline, candidate and pinned CPython 3.15.0: test_descr.OperatorsTest.test_lists and test_descr.ClassPropertiesAndMethods.test_pow_wrapper_error_messages. One unchanged flag assertion extracted from canonical test_call failed on baseline and passed on candidate and CPython. This is an external observation, not execution of the CAPI-dependent enclosing test or canonical-suite coverage. Candidate observation process completed within the fixed 15-second, sampled 512 MiB RSS, 6 GiB address-space and core-zero bounds. Threaded VM check (170s), non-threaded VM check (46s), strict affected VM all-target Clippy (118s), and normal hooks (4s) passed. These narrow controls do not establish correctness of every optimized dispatch path or a performance improvement. Full workspace/CAPI runtime gates and the release-mode whole-module command have not been run locally and remain outstanding; actual hosted executed steps will be tracked separately. The full CAPI-dependent method and whole test modules were not executed locally. Monitoring CI repair The original head 0af373cf failed hosted Ubuntu tests because the now-correct test_vs_other_type_call unexpectedly succeeded, including the workflow's built-in rerun. On the exact unchanged canonical selector, the sealed main baseline fails because int.__repr__ CALL/C_RETURN events report MISSING instead of receiver 0; the sealed candidate and pinned CPython both pass with zero skips. The updater-generated correction at 87db988c removes exactly that expected-failure decorator, with no native change or assertion weakening. All three local runs used the fixed 15-second / 512 MiB sampled-RSS guard; normal hooks passed. These are one-selector results, not a local full-module or full-suite claim. Fresh hosted CI is pending. AI assistance This change and its source review/validation were prepared with OpenAI Codex assistance. No human review is claimed by this disclosure. Performance qualification for measured head 0af373cf CodSpeed executed the benchmark and reported a passing gate, but comprehension_list.py increased from 803.995 to 891.509 µs (−9.8164% efficiency). The report exposes RELATIVE detection, allowedRegression=0.1, confidenceLevel=0.99, and no benchmark-specific override. Its NoChange classification therefore does not establish equal performance. The comparison uses main bcfad3554ef66264d08c2d030d1fa13aaab5c03c and PR head 0af373cff4c5b603a3d723f28d3fcb5ba8f6c5e8, tested as merge 8c101451f39dd8d8e18c4bf393c0ed6f73aded0c. Both named environment fingerprints are ffdf350d53eb784b, but the baseline job used kernel 7.0.0-1017-azure and runner image 20261018.339.1, whereas the head used kernel 6.17.0-1022-azure and image 20261012.334.1. Both used CodSpeed runner 5.4.2. This is not a fully matched-environment comparison and does not establish a cause. Four other benchmarks were skipped with baseline results reused.
Open Graph Description: Summary Mark wrapper_descriptor as METHOD_DESCRIPTOR, matching CPython 3.15.0. This is the isolated descriptor-flag hunk from the Python 3.15 upgrade work, not the wrapper lifetime/GC changes track...
X Description: Summary Mark wrapper_descriptor as METHOD_DESCRIPTOR, matching CPython 3.15.0. This is the isolated descriptor-flag hunk from the Python 3.15 upgrade work, not the wrapper lifetime/GC changes track...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9286
X: @github
Domain: github.com
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3cf0d819-9e17-0692-097b-4d993948dcc9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DB9C:928E2:3256808:4321401:6B01F393 |
| html-safe-nonce | 88cbbf6b677120f0cfbd8c91815e077e5e60f1ab52cbbb4eb40030b827b30c49 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjlDOjkyOEUyOjMyNTY4MDg6NDMyMTQwMTo2QjAxRjM5MyIsInZpc2l0b3JfaWQiOiI1MjY3Mzk4MDYzMTIyNjc0NTc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 83693acbfb00d56433d9ff7e40b2a0651debf47acedd22c62290a39313ba3a3f |
| hovercard-subject-tag | pull_request:4957498836 |
| 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/9286/files |
| twitter:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| og:image:alt | Summary Mark wrapper_descriptor as METHOD_DESCRIPTOR, matching CPython 3.15.0. This is the isolated descriptor-flag hunk from the Python 3.15 upgrade work, not the wrapper lifetime/GC changes track... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width