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

Nick Coghlan ncoghlan at gmail.com
Mon Jun 15 16:32:51 CEST 2009

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:

> 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.


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

More information about the Python-Dev mailing list