
On 10/18/07, Bill Janssen <janssen@parc.com> wrote:
One thing to watch out for: ssl.SSLError can't inherit from socket.error, as it does in 2.6+,
Why not?
Mainly because I don't see how to get my hands on the C version of socket.error. Patches gratefully accepted, though.
For anyone who wants to write the patch, you can obviously either expose the variable the exception is stored in globally, or you can import the socket module and just get socket.error directly off of the module itself. -Brett

For anyone who wants to write the patch, you can obviously either expose the variable the exception is stored in globally,
Remember that this is an add-on module, so re-compiling the socket module code to expose the variable globally would be a rather big change. Or so it seemed to me when I thought about it.
you can import the socket module and just get socket.error directly off of the module itself.
This is feasible. Bill

you can import the socket module and just get socket.error directly off of the module itself.
This is feasible.
In fact, so feasible I've done it. :-). http://pypi.python.org/pypi/ssl/1.9/ Bill
participants (2)
-
Bill Janssen
-
Brett Cannon