Armin Rigo <[email protected]> added the comment:

One solution might be to change socket.py to remove the lines "if type(s) is
_realsocket".  It would cleanly break any library that attempts to monkey-patch
sockets in non-official way, and point them to the direction of solving it for
pypy: they need to implement a reference counter and methods _drop() and
_reuse() on the class they're passing to _socketobject() or _fileobject().  This
can be made explicit with comments.

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1568>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to