Antoine Pitrou added the comment:

Theoretically, SSLError could stop inheriting from OSError. Practically, it may 
break a lot of code (though in a rather noisy way that is easy to spot).

Otherwise, the best effort fix is to make our SSL error codes start at a high 
number, e.g. 2000 (but not too high, so as not to overlap with Windows' socket 
error codes, which start at 10000 IIRC). See the "py_ssl_error" enum at the 
beginning of _ssl.c.

----------
stage:  -> needs patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23588>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to