Skip to content

Align Windows registry callable signatures - #9573

Merged
youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:fix/windows-winreg-signatures-20261103
Nov 3, 2026
Merged

youknowone merged 1 commit into
RustPython:mainfrom
youknowdot:fix/windows-winreg-signatures-20261103

Conversation

@youknowdot

Copy link
Copy Markdown
Contributor

Summary

Align five Windows winreg callable signatures with CPython 3.15's Clinic output: positional parameter names for EnumValue, ExpandEnvironmentStrings, SetValue, and SetValueEx, plus the sub_key=None default for DeleteTree.

DeleteTree already flattened omission and explicit None to the same value. The new native Option<PyStr> default preserves that behavior, supplied-value conversion and audit payload without allocating a Python default. These mismatches appear in the Windows whats_left report.

Validation

  • Independent source review checked all five names/defaults, positional-only flags and arity, omission versus explicit None, invalid-value conversion and audit payload.
  • rustfmt --edition 2024 --check, git diff --check, and the normal commit hook passed.
  • RustPython compilation, workspace/C API tests, and Windows runtime tests were not run locally: the coordinated native execution guard and lock are absent and the offline dependency cache is incomplete. Hosted CI is pending; no runtime pass is claimed.

AI assistance

Implementation and source review were assisted by dot. The runtime does not expose its exact model version.

Use CPython parameter names and represent the DeleteTree None default directly without boxing or changing omission behavior.

Assisted-by: dot:frontier-intelligence
@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@youknowone
youknowone marked this pull request as ready for review November 3, 2026 17:32
@youknowone
youknowone merged commit 4d34461 into RustPython:main Nov 3, 2026
28 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T17:36:27.032377Z 55978c7 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants