Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

It looks like somewhere in your application a deque object is being passed 
where a socket was expected.  The easiest way to find the culprit is to edit 
the class SocketIO in Lib/socket.py:

    def __init__(self, sock, mode):
        if mode not in ("r", "w", "rw", "rb", "wb", "rwb"):
            raise ValueError("invalid mode: %r" % mode)
        io.RawIOBase.__init__(self)
        self._sock = sock
+       assert not isinstance(sock, deque)

----------
nosy: +rhettinger

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

Reply via email to