[Python-3000] Merging the trunk SSL changes.
janssen at parc.com
Wed Aug 29 01:37:08 CEST 2007
> I'm trying to merge the trunk into the py3k branch (so I can work on
> removing simple slices), but the SSL changes in the trunk are in the way.
> That is to say, the new 'ssl' module depends on the Python 2.x layout in the
> 'socket' module. Specifically, that socket.socket is a wrapper class around
> _socket.socket, so it can subclass that and still pass a socket as a
> separate argument to __init__. Unfortunately, in Python 3.0,
> socket.socketis a subclass of _socket.socket, so that trick won't
> work. And there isn't
> really a way to fake it, either, except by making ssl.sslsocket *not*
> subclass socket.socket.
It's on my list -- in 3K, the plan is that ssl.SSLSocket is going to
inherit from socket.socket and socket.SocketIO, and (I think) pass
fileno instead of _sock.
> I'm going to check in this merge despite of the extra breakage, but it would
> be good if someone could either fix the py3k branch proper (I don't see
> how), or change the trunk strategy to be more forward-compatible.
If you can hold off one day before doing the trunk merge, I'm going to
post a fix to the Windows SSL breakage this evening (PDT).
More information about the Python-3000