[New-bugs-announce] [issue17169] Restore errno in tempfile exceptions

Serhiy Storchaka report at bugs.python.org
Sat Feb 9 15:45:19 CET 2013

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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list