Repository navigation
host_env: export ctypes, chflags, SIG_DFL - #8766
Conversation
Publish ctypes FUNCFLAG/TYPEFLAG/DICTFLAG and CTYPES_MAX_ARGCOUNT, BSD chflags bits libc does not bind, AT_FDCWD, and SIG_DFL/IGN/ERR. Assisted-by: Claude
_ctypes, _stat, os.AT_FDCWD, and Windows SIG_DFL/IGN/ERR now re-export the host_env names. Wasm keeps local SIG_* literals. Assisted-by: Claude
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Understand this PR’s impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: RustPython/RustPython/.coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change centralizes ctypes, filesystem, and signal constants in host environment modules. Standard-library modules now import these constants and extend signal constant coverage to Windows. ChangesHost constant integration
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Refactor Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
Move remaining stdlib numeric constants onto
host_env, then publish them from the stdlib modules.host_envnow owns:_ctypesFUNCFLAG_*,TYPEFLAG_*,DICTFLAG_FINAL, andCTYPES_MAX_ARGCOUNTchflagsbitslibcdoes not bind (UF_SETTABLE/UF_NOUNLINK/…,SF_*, macOSSF_SUPPORTED/SF_SYNTHETIC)AT_FDCWDSIG_DFL/SIG_IGN/SIG_ERR(libc on unix, Windows literals)Wasm keeps local
SIG_*literals becausehost_env::signalis unix/windows only.Summary by CodeRabbit
New Features
Improvements