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.

classification
Title: struni: correction for sockets on win32
Type: Stage:
Components: Windows Versions: Python 3.0
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: amaury.forgeotdarc, gvanrossum
Priority: normal Keywords: patch

Created on 2007-07-17 01:14 by amaury.forgeotdarc, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
socket.diff amaury.forgeotdarc, 2007-07-17 01:14
Messages (2)
msg52898 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2007-07-17 01:14
On Windows, os.dup() works on files, but not on socket handles.
Thus I changed the condition from
_os_has_dup = hasattr(os, "dup")
to
_can_dup_socket = hasattr(_socket, "dup")

This corrects many tests involving a socket server (test_ftplib at least).
msg52899 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-07-17 20:41
Committed revision 56415.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45214
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: + Python 3.0
2007-07-17 01:14:51amaury.forgeotdarccreate