Skip to content

Align positional OS and import signatures - #9568

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

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

Conversation

@youknowdot

Copy link
Copy Markdown
Contributor

Summary

Align four positional-only callable signatures with CPython 3.15:

  • Reject path= for Windows nt._path_isdir, matching its METH_O Clinic wrapper. Its existing path conversion and predicate logic are otherwise unchanged.
  • Expose signal and options for Windows nt.kill and nt.waitpid, and mod for _imp.exec_dynamic.

The existing _path_isdir path-conversion error handling does not yet match CPython in all cases; this change does not claim full behavior parity. The names and kinds were checked against CPython v3.15.0's posix Clinic output and import Clinic output. These entries appear in whats_left CI output.

Validation

  • Independent source review checked the names, parameter kinds, inferred calling convention and unchanged conversion paths.
  • rustfmt --edition 2024 --check, git diff --check, and the normal commit hook passed.
  • Local compilation, workspace/C API tests and RustPython runtime tests were not run: the coordinated native execution guard and lock are absent, and the offline dependency cache is incomplete. Linux and Windows CI are pending; no hosted pass is claimed.

AI assistance

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

Use the CPython parameter names for nt.kill, nt.waitpid, and _imp.exec_dynamic, and reject keyword arguments for nt._path_isdir.

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 16:41
@youknowone
youknowone merged commit 6de45e1 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-03T16:44:43.550573Z 74c79e7 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