[issue30481] lib/socket.py, line 330, Treated 'file' as a socket object, instead of int

2017-05-26 Thread Mohamad amin Khakzadan
Mohamad amin Khakzadan added the comment: sorry, my code have bug. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue30481] lib/socket.py, line 330, Treated 'file' as a socket object, instead of int

2017-05-26 Thread Mohamad amin Khakzadan
New submission from Mohamad amin Khakzadan: When I network programming, I got this problem: File "ft.py", line 43, in SendFile sent=conn.sendfile(fd.fileno(), offset) File "D:\Program Files\Python\Python35-32\lib\socket.py", line 391, in sendfile return self._se