1. Armin Rigo
  2. cpython-withatomic


Tim Peters  committed c291ca2

Give the Windows socket wrapper function default values for its 'family'
and 'type' arguments. This improves x-platform compatibility (e.g., on
Unix systems socket() already supported these default arguments).

No need to do anything here for 2.3 -- it already fixed this glitch in a
different way.

  • Participants
  • Parent commits 51ce69b
  • Branches 2.2

Comments (0)

Files changed (1)

File Lib/socket.py

View file
  • Ignore whitespace
     _realsocketcall = _socket.socket
-    def socket(family, type, proto=0):
+    def socket(family=AF_INET, type=SOCK_STREAM, proto=0):
         return _socketobject(_realsocketcall(family, type, proto))