Mercurial > cpython-lru_cache-weakref
comparison Modules/arraymodule.c @ 18851:ef2031c54875 legacy-trunk
Fix buffer_info() docstring to match reality. See SF bug #444842.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 27 Jul 2001 16:05:32 +0000 |
| parents | a02085871c3f |
| children | 304b34023876 |
comparison
equal
deleted
inserted
replaced
| 18849:77fd20bcc766 | 18851:ef2031c54875 |
|---|---|
| 878 | 878 |
| 879 static char buffer_info_doc [] = | 879 static char buffer_info_doc [] = |
| 880 "buffer_info() -> (address, length)\n\ | 880 "buffer_info() -> (address, length)\n\ |
| 881 \n\ | 881 \n\ |
| 882 Return a tuple (address, length) giving the current memory address and\n\ | 882 Return a tuple (address, length) giving the current memory address and\n\ |
| 883 the length in bytes of the buffer used to hold array's contents."; | 883 the length in items of the buffer used to hold array's contents\n\ |
| 884 The length should be multiplied by the itemsize attribute to calculate\n\ | |
| 885 the buffer length in bytes."; | |
| 884 | 886 |
| 885 | 887 |
| 886 static PyObject * | 888 static PyObject * |
| 887 array_append(arrayobject *self, PyObject *args) | 889 array_append(arrayobject *self, PyObject *args) |
| 888 { | 890 { |
