[issue23588] Errno conflicts in ssl.SSLError

Martin Panter report at bugs.python.org
Sun Mar 8 01:55:30 CET 2015


Martin Panter added the comment:

[padding]

This behaviour of returning an SSL-specific error code in the “errno” attribute is not documented. The “errno” attribute is actually specified to hold a POSIX error code, and I don’t think this specification should be changed.

I don’t see how checking for an “errno_scope” attribute is any better than checking for isinstance(exception, SSLError). I think the SSL error codes should be removed from “errno”, or maybe moved to a new attribute (ssl_error?), like what is already done with the “winerror” attribute.

----------
nosy: +vadmium

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23588>
_______________________________________


More information about the Python-bugs-list mailing list