Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2c4a9c778bb3 by Antoine Pitrou in branch 'default':
Issue #11183: Add finer-grained exceptions to the ssl module, so that
http://hg.python.org/cpython/rev/2c4a9c778bb3
--
nosy: +python-dev
Antoine Pitrou pit...@free.fr added the comment:
Committed now.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11183
Antoine Pitrou pit...@free.fr added the comment:
Here is a patch. It adds SSLZeroReturnError, SSLWantReadError,
SSLWantWriteError, SSLSyscallError and SSLEOFError.
--
keywords: +patch
Added file: http://bugs.python.org/file23498/sslerrors.patch
___
Changes by Antoine Pitrou pit...@free.fr:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11183
___
___
Antoine Pitrou pit...@free.fr added the comment:
Note: the ERR_GET_REASON() macro helps get a more precise explanation of an
error. We could add a reason attribute to raised exceptions, and also provide a
mnemonic-integer mapping.
--
stage: - needs patch
New submission from Antoine Pitrou pit...@free.fr:
pyOpenSSL (*) has the good idea of defining exception subclasses for the
various OpenSSL error codes (ZeroReturnError, WantReadError, etc.). The ssl
module could do the same.
(*) http://packages.python.org/pyOpenSSL/openssl-ssl.html