Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 38353:36cd4a4ab8f7 legacy-trunk
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().
* Fixed minor typos in arraymodule.
| author | Martin Blais <blais@furius.ca> |
|---|---|
| date | Fri, 26 May 2006 12:03:27 +0000 |
| parents | 12ab20cd7c27 |
| children | 5bc7272b81e5 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Fri May 26 12:01:49 2006 +0000 +++ b/Modules/arraymodule.c Fri May 26 12:03:27 2006 +0000 @@ -1975,9 +1975,9 @@ 0, /* tp_setattr */ 0, /* tp_compare */ (reprfunc)array_repr, /* tp_repr */ - 0, /* tp_as _number*/ - &array_as_sequence, /* tp_as _sequence*/ - &array_as_mapping, /* tp_as _mapping*/ + 0, /* tp_as_number*/ + &array_as_sequence, /* tp_as_sequence*/ + &array_as_mapping, /* tp_as_mapping*/ 0, /* tp_hash */ 0, /* tp_call */ 0, /* tp_str */
