[Patches] [ python-Patches-1003700 ] add socketpair function to socket module

SourceForge.net noreply at sourceforge.net
Fri Aug 6 09:10:38 CEST 2004


Patches item #1003700, was opened at 2004-08-05 04:09
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1003700&group_id=5470

Category: Modules
Group: Python 2.4
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Dave Cole (davecole)
>Assigned to: Dave Cole (davecole)
Summary: add socketpair function to socket module

Initial Comment:
Adds a socketpair() function to the socketmodule.c.  
The function returns two socket objects.

Contains some simple unit tests that check the return
value from socketpair is actually two functioning sockets.

Outstanding question is whether the family, type, proto
arguments should be kwargs as per socket() function, or
positional as per fromfd() function.  If kwargs, then
it is arguable that the fromfd() arguments should be
changed (in another patch).


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2004-08-06 09:10

Message:
Logged In: YES 
user_id=21627

The patch is fine, please apply. Make sure to
- add \versionadded{2.4} into the documentation
- add an entry to Misc/NEWS

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1003700&group_id=5470


More information about the Patches mailing list