diff options
author | Martin Blais <blais@furius.ca> | 2006-05-26 12:03:27 (GMT) |
---|---|---|
committer | Martin Blais <blais@furius.ca> | 2006-05-26 12:03:27 (GMT) |
commit | 2856e5f3909f8366487ad85ca6c234040317e1e5 (patch) | |
tree | 7f2cbe99313c107ea133d08706171dd85683fe19 /Modules/arraymodule.c | |
parent | 1b94940165b4e2b789855b24ea0297ebed691c46 (diff) | |
download | cpython-2856e5f3909f8366487ad85ca6c234040317e1e5.zip cpython-2856e5f3909f8366487ad85ca6c234040317e1e5.tar.gz cpython-2856e5f3909f8366487ad85ca6c234040317e1e5.tar.bz2 |
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.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 52a7f5e..af12769 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1975,9 +1975,9 @@ static PyTypeObject Arraytype = { 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 */ |