ssl.SSLSocket.__init__ makes a call to _ssl.sslwrap (in the C
module).  That in turn makes a call to PyArg_ParseTuple, which casts
the first arg of _ssl.sslwrap into a PySocketModule.Sock_Type
object.

My problem is that I am trying to pass in an object that implements
the Socket interface, but does not inherit from _socket.socket, like
you do with file-like objects.  Is there a way to make this work, or
is the PyArg_ParseTuple call going to stop me.  Would I need to have
_ssl.sslwrap do something differently with its args?

-eric
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to