]> granicus.if.org Git - python/commitdiff
Fix buffer_info() docstring to match reality. See SF bug #444842.
authorGuido van Rossum <guido@python.org>
Fri, 27 Jul 2001 16:05:32 +0000 (16:05 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 27 Jul 2001 16:05:32 +0000 (16:05 +0000)
Modules/arraymodule.c

index de90da90e830c86e01b365c44197f3d11513eeb8..6168bb08c61cb2158460a4cb8fcc78f11aef9fa3 100644 (file)
@@ -880,7 +880,9 @@ static char buffer_info_doc [] =
 "buffer_info() -> (address, length)\n\
 \n\
 Return a tuple (address, length) giving the current memory address and\n\
-the length in bytes of the buffer used to hold array's contents.";
+the length in items of the buffer used to hold array's contents\n\
+The length should be multiplied by the itemsize attribute to calculate\n\
+the buffer length in bytes.";
 
 
 static PyObject *