mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
In CPython, __str__ and __repr__ for OSError show different results. This PR try to match this behavior but without the part after the message (in following example is "'123' -> '456'"). ``` In : exc.__repr__() Out: "FileNotFoundError(2, 'No such file or directory')" In : exc.__str__() Out: "[Errno 2] No such file or directory: '123' -> '456'" In : exc.args Out: (2, 'No such file or directory') ```