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

SourceForge.net noreply at sourceforge.net
Mon Aug 9 06:53:24 CEST 2004


Patches item #1003700, was opened at 2004-08-05 02:09
Message generated for change (Comment added) made by davecole
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: Closed
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: Dave Cole (davecole)
Date: 2004-08-09 04:53

Message:
Logged In: YES 
user_id=28658

Commited the patch.

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

Comment By: Dave Cole (davecole)
Date: 2004-08-09 04:48

Message:
Logged In: YES 
user_id=28658

Have addressed all of the issues with the v2 patch.  Will
commit this now.

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

Comment By: Martin v. Löwis (loewis)
Date: 2004-08-06 07: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