From: Guido van Rossum Date: Fri, 27 Jul 2001 16:05:32 +0000 (+0000) Subject: Fix buffer_info() docstring to match reality. See SF bug #444842. X-Git-Tag: v2.2a3~950 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=702d08ec05ba66831b5c95a9643a7ebbb6d67795;p=thirdparty%2FPython%2Fcpython.git Fix buffer_info() docstring to match reality. See SF bug #444842. --- diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index de90da90e830..6168bb08c61c 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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 *