[Python-checkins] r46300 - in python/trunk: Lib/socket.py Lib/test/test_socket.py Lib/test/test_struct.py Modules/_struct.c Modules/arraymodule.c Modules/socketmodule.c

Guido van Rossum guido at python.org
Fri May 26 18:56:17 CEST 2006


On 5/26/06, martin.blais <python-checkins at python.org> wrote:
> Log:
> Support for buffer protocol for socket and struct.
>
> * Added socket.recv_buf() and socket.recvfrom_buf() methods, that use the buffer
>   protocol (send and sendto already did).
>
> * Added struct.pack_to(), that is the corresponding buffer compatible method to
>   unpack_from().

Hm... The file object has a similar method readinto(). Perhaps the
methods introduced here could follow that lead instead of using two
different new naming conventions?

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-checkins mailing list