[issue2920] Patch to print symbolic value of errno in OSError.__str__()

2021-03-22 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2920] Patch to print symbolic value of errno in OSError.__str__()

2019-08-06 Thread Zackery Spytz
Zackery Spytz added the comment: Eryk, I'm not sure if something similar should be done for winerror. I think it's best to keep OSError_str() as simple as possible. -- ___ Python tracker

[issue2920] Patch to print symbolic value of errno in OSError.__str__()

2019-07-31 Thread Eryk Sun
Eryk Sun added the comment: How about doing something similar for Windows when winerror is set? This is a common case since many os functions use the Windows API directly. Showing the symbolic error name will help to disambiguate exceptions, such as FileNotFoundError (ENOENT) from:

[issue2920] Patch to print symbolic value of errno in OSError.__str__()

2019-07-28 Thread Zackery Spytz
Change by Zackery Spytz : -- title: Patch to print symbolic value or errno in EnvironmentError.__str__() -> Patch to print symbolic value of errno in OSError.__str__() versions: +Python 3.9 -Python 3.3 ___ Python tracker