Jack Diederich <jackd...@gmail.com> added the comment:

I've been digging into the patch.  Is there a reason sendmsg() wants an 
iterable of buffers instead of just accepting a str? The list-of-buffers more 
closely matches the underlying syscall but I'm not sure what the python benefit 
is, especially when recvmsg() only returns a single value (it only creates 1 
iovec under the covers).  Python doesn't have "readv" like methods so making 
sendmsg/recvmsg work like recv/send (straight strings) seems like the way to go.

Also, the "y*" format character for packing/unpacking tuples is no longer 
supported - I'm assuming it used to mean buffers.

Does anyone have a good reference for using recvmsg/sendmsg?  I read the man 
pages and googled around but couldn't find anything.  I have no experience with 
using the calls in-the-wild.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6560>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to