[New-bugs-announce] [issue13257] Move importlib over to PEP 3151 exceptions

Brett Cannon report at bugs.python.org
Mon Oct 24 21:16:51 CEST 2011

New submission from Brett Cannon <brett at python.org>:

Importlib uses the errno module explicitly for properly checking OSError for EEXIST and IOError for EACCES. Thanks to PEP 3151, however, neither check is needed since those exceptions correspond to FileExistsError and PermissionError, respectively.

As long as posix.mkdir() uses the new exceptions, the entire need for errno goes away for the module, eliminating one more module required for bootstrapping.

assignee: brett.cannon
components: Library (Lib)
keywords: easy
messages: 146317
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Move importlib over to PEP 3151 exceptions
type: behavior
versions: Python 3.3

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list