[issue17169] Restore errno in tempfile exceptions
New submission from Serhiy Storchaka: Before 3.3 if not able to create the name of the temporary file then an OSError with meaninful errno (ENOENT or EEXIST) was raised. Now subclass of OSError raised with errno=None. This is an incompatible change because old user code can catch OSError exception and then test its errno. Here is a patch which restores errno attribute in these exceptions. -- components: Library (Lib) files: tempfile_errno.patch keywords: 3.3regression, patch messages: 181739 nosy: flox, georg.brandl, ncoghlan, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Restore errno in tempfile exceptions type: behavior versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file29017/tempfile_errno.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17169] Restore errno in tempfile exceptions
Senthil Kumaran added the comment: The patch looks good and it is correct thing to do IMO. thanks. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17169] Restore errno in tempfile exceptions
Roundup Robot added the comment: New changeset 11eaa61124c2 by Serhiy Storchaka in branch '3.3': Issue #17169: Restore errno in tempfile exceptions. http://hg.python.org/cpython/rev/11eaa61124c2 New changeset fd3e3059381a by Serhiy Storchaka in branch 'default': Issue #17169: Restore errno in tempfile exceptions. http://hg.python.org/cpython/rev/fd3e3059381a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17169] Restore errno in tempfile exceptions
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17169 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com