New submission from Brett Cannon <br...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13257>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to