[issue11183] Finer-grained exceptions for the ssl module

2011-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed now. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue11183] Finer-grained exceptions for the ssl module

2011-10-27 Thread Roundup Robot
Roundup Robot 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 ___ Python tra

[issue11183] Finer-grained exceptions for the ssl module

2011-10-22 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue11183] Finer-grained exceptions for the ssl module

2011-10-22 Thread Antoine Pitrou
Antoine Pitrou 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 ___ Python tracker

[issue11183] Finer-grained exceptions for the ssl module

2011-07-13 Thread Antoine Pitrou
Antoine Pitrou 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 ___ Py

[issue11183] Finer-grained exceptions for the ssl module

2011-02-11 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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 -- components: