Jeongseop Lim
Jeongseop Lim
I found this through differential testing rather than in real code, so I don't have a practical use case for overriding `__float__` in a `float` subclass, and no strong preference...
@Abhishekpandey123-git No objection from me, and I'm not planning a PR myself. CPython doesn't assign issues, so you don't need my sign-off. That said, since Serhiy has been cc'd, it...
@Josverl Thanks for your question. My concern is the behavioral difference compared to CPython, and whether this difference is intentional. This was discovered via fuzzing rather than a real-world case....
I agree with MicroPython's design values — matching CPython blindly isn't the goal, and I agree with @Josverl and @dpgeorge that keeping the `repr()` implementation as-is is reasonable given it's...
Agreed, @dpgeorge. Fixing this properly would require a non-trivial refactor, so I understand it can't be addressed right away. I've added a cpydiff entry for this difference in PR #18955....
@agatti Sorry for the slow reply. Some answers below. **Floats:** already fine — `pow(2.0, -1, 4)` raises `TypeError` on both, so there's no FP code to patch. The wrinkle is...
Thanks @Josverl! ~~I opened #19148 with the size measurement.~~
You're right @agatti! When `__dir__` returns `None`, execution eventually hits a `TypeError` downstream, so the observable behavior is effectively the same. That said, when `__dir__` returns a `str`, there is...
@agatti I see you've already started on the `dir()` opt-out yourself! Even with that, the behavioural divergence still applies whenever `dir()` is enabled, so I've opened #19178 to add the...
Thanks for the responses. I had narrowly assumed MicroPython's target was the current CPython baseline, but I see now that the project is also accounting for where CPython is headed....