Martin Panter added the comment:
According to strace, Python 3 is calling send(-1, ...):
sendto(-1, "x", 1, 0, NULL, 0) = -1 EBADF (Bad file descriptor)
A related discrepancy between Python 2 and 3 is how the socket.makefile()
objects affect the original socket. In Python 2:
>>> f =
Changes by Phil Connell pconn...@gmail.com:
--
nosy: +pconnell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13344
___
___
Python-bugs-list
Changes by Colin Marc colinm...@gmail.com:
--
nosy: +colinmarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13344
___
___
Python-bugs-list
New submission from Antoine Pitrou pit...@free.fr:
This decrepancy between 2.x and 3.x is witnessed under Windows:
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on
win32
Type help, copyright, credits or license for more information.
import socket
sock =
Antoine Pitrou pit...@free.fr added the comment:
discrepancy, not decrepancy :S
(10038 is WSAENOTSOCK, by the way)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13344
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13344
___
___