Jeongseop Lim
Jeongseop Lim
This Pull Request introduces a new feature: the addition of C4 model Component nodes. Previously, there were no Component nodes available for creating Component diagrams at the C4 model Level...
### Bug report ### Bug description Since the iconv-based codec (gh-152997, GH-153001) landed, `codecs.lookup()` on Linux/glibc accepts encoding names whose charset part glibc's `iconv_open()` reduces to nothing, and returns a...
### Bug report ### Bug description Since 3.14, the single-argument form `complex(x)` no longer calls `x.__float__()` when `x` is an instance of a `float` subclass that overrides `__float__`. The two-argument...
## Description `str()` on an object whose `__repr__` returns a `str` subclass instance incorrectly returns a plain `str`, discarding the subclass type. CPython preserves the subclass type as-is. This is...
## Description `ascii()` always creates a new plain `str` from the repr result, even when the repr is already ASCII. CPython's `PyObject_ASCII` returns the repr object directly when it's already...
## Summary `divmod(0, -1.0)` returns `(-1.0, -1.0)` — the quotient and remainder are both off by one. The float `divmod` implementation enters its sign-correction branch even when the remainder is...
## Feature ### Reproduction ```python pow(1, None, 0) ``` **RustPython:** ``` ValueError: pow() 3rd argument cannot be 0 ``` **CPython:** ``` TypeError: unsupported operand type(s) for ** or pow(): 'int',...
## Feature `pow(-316340, 8481.102091645396)` silently returns the infinite complex value `(-inf-infj)` in RustPython, but CPython raises `OverflowError("complex exponentiation")` because the result of the negative-base × non-integer-exponent branch overflows the IEEE-754...
## Feature `pow(2.0, 2000)` (and any positive-base × large-exponent `float` exponentiation that overflows IEEE 754 double range) silently returns `inf` in RustPython, but CPython raises `OverflowError`. ### Reproduction ```python print(pow(2.0,...
## Feature `round()` on an `int` subclass (`bool`) returns the receiver unchanged in RustPython, but CPython returns a fresh exact `int`. ### Reproduction ```python print(round(True)) print(type(round(True))) ``` **RustPython:** ``` True...