[issue22081] Backport repr(socket.socket) from Python 3.5 to Python 2.7

STINNER Victor report at bugs.python.org
Sat Jul 26 15:07:00 CEST 2014


STINNER Victor added the comment:

I also fixed repr(_socket.socket) on Windows 64-bit for closed sockets (on Python 2.7, 3.4 and 3.5):

changeset:   91881:04c916a1e82f
branch:      2.7
tag:         tip
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Jul 26 14:52:55 2014 +0200
files:       Lib/test/test_socket.py Misc/NEWS Modules/socketmodule.c
description:
Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
on closed socket.


changeset:   91880:a86c273a1270
branch:      2.7
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Sat Jul 26 14:47:56 2014 +0200
files:       Modules/socketmodule.c
description:
socketmodule.c: backport INVALID_SOCKET from Python 3.5 to simplify the code

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22081>
_______________________________________


More information about the Python-bugs-list mailing list