This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients reidfaiv, rhettinger
Date 2017-09-27.07:34:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506497645.66.0.154975027568.issue31591@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2017-09-27 07:34:05rhettingersetrecipients: + rhettinger, reidfaiv
2017-09-27 07:34:05rhettingersetmessageid: <1506497645.66.0.154975027568.issue31591@psf.upfronthosting.co.za>
2017-09-27 07:34:05rhettingerlinkissue31591 messages
2017-09-27 07:34:05rhettingercreate