[issue42427] Use the errno attribute of OSError instead of args[0]

2020-11-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42427] Use the errno attribute of OSError instead of args[0]

2020-11-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c4d45ee670c09d4f6da709df072ec80cb7dfad22 by Serhiy Storchaka in branch 'master': bpo-42427: Use the errno attribute of OSError instead of args[0] (GH-23449) https://github.com/python/cpython/commit/c4d45ee670c09d4f6da709df072ec80cb7dfad22

[issue42427] Use the errno attribute of OSError instead of args[0]

2020-11-21 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42427] Use the errno attribute of OSError instead of args[0]

2020-11-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +22341 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23449 ___ Python tracker

[issue42427] Use the errno attribute of OSError instead of args[0]

2020-11-21 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Some code in the stdlib still uses e.args[0] to access errno of OSError instead of e.errno. The latter is more readable, and also it always success (although can return None), but args can be an empty tuple. -- components: Library (Lib)