| Store | Cart

[Python-Dev] python sendmsg()/recvmsg() implementation

From: Nick Coghlan <ncog...@gmail.com>
Tue, 16 Jun 2009 00:32:51 +1000
K?lm?n Gergely wrote:
> Since I am not a python core developer the patch might still be in a> pretty outdated state. I'd like someone to look it over> and direct me to some documentation (the ones I've found so far were> pretty sketchy), for it to be acceptable for inclusion.> The sanity of the code is what matters to me the most. I've looked it> over though and found it in a sound state, but I guess> you guys might have a different opinion about that ;)> > With writing the test cases, some documentation would be nice.

Most unit tests these days are written based on either doctest or
unittest. When adding new features to an existing module, it is usually
best to follow the testing style already used for the rest of that
module (in this case, that should be test/test_socket.py).

The relevant question in the dev FAQ gives good pointers:
http://www.python.org/dev/faq/#how-to-test-a-patch

> I've attached the patch generated with svn diff for revision 73434, and> the test code that I use to pass a file descriptor> between processes. It works just fine :).

Uploading files to the tracker is generally the best option - patches
tend to get lost if they're just sent to the mailing list.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------

Recent Messages in this Thread
Kálmán Gergely Jun 15, 2009 11:47 am
Nick Coghlan Jun 15, 2009 02:32 pm
Kálmán Gergely Jul 23, 2009 03:34 pm
Aahz Jul 23, 2009 05:37 pm
Kálmán Gergely Jul 24, 2009 08:32 am
Jean-Paul Calderone Jun 09, 2009 03:10 pm
Messages in this thread