STINNER Victor added the comment: The PEP 3151 introduced "specialized" subclasses of OSError. Antoine Pitrou conducted a survey to decide which errors are common enough to merit a builtin exception: http://legacy.python.org/dev/peps/pep-3151/#appendix-a-survey-of-common-errnos
ENOSPC is not mentionned in the PEP. According to 0002-Use-the-new-NoSpaceError.patch the error is rare: only used *once* in Python... and only in a very specific unit test (to workaround an issue on a specific buildbot...). It looks like ENOSPC is available on Linux, Windows, FreeBSD and Mac OS X. It is part of the POSIX standad, ex: http://pubs.opengroup.org/onlinepubs/009604599/basedefs/errno.h.html ---------- nosy: +haypo _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22678> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com