mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
* address review: negative defaults, to_bytes signed, get_self, fstat - python_default_repr renders negated int/float literals and looks through parentheses and groups. - int.to_bytes signed is ArgIntoBool again, so any object is accepted by truthiness; its signature default stays False via py_default. - PyNativeFunction::get_self falls back to the module object. - os.fstat has its own FromArgs with a single fd parameter instead of reusing stat's arguments. Assisted-by: Claude:claude-opus-5-5 * address review: literal default rendering and fstat supports sets - Literal defaults are rendered by python_literal_repr, which recurses through negation, parentheses and groups, so `-(1)` renders `-1`. - Float literals without a dot or exponent, such as `1f64`, render with a trailing `.0`. - os.fstat is removed from supports_fd, supports_dir_fd and supports_follow_symlinks. Assisted-by: Claude:claude-opus-5-5