[Python-checkins] python/dist/src/Lib socket.py,1.16.4.2,1.16.4.3
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Thu, 29 May 2003 11:50:48 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv31391/Lib
Modified Files:
Tag: release22-maint
socket.py
Log Message:
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.
Index: socket.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/socket.py,v
retrieving revision 1.16.4.2
retrieving revision 1.16.4.3
diff -C2 -d -r1.16.4.2 -r1.16.4.3
*** socket.py 23 Dec 2002 16:26:15 -0000 1.16.4.2
--- socket.py 29 May 2003 18:50:45 -0000 1.16.4.3
***************
*** 53,57 ****
_realsocketcall = _socket.socket
! def socket(family, type, proto=0):
return _socketobject(_realsocketcall(family, type, proto))
--- 53,57 ----
_realsocketcall = _socket.socket
! def socket(family=AF_INET, type=SOCK_STREAM, proto=0):
return _socketobject(_realsocketcall(family, type, proto))