]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct information on support for repietition & concatenation for buffer
authorFred Drake <fdrake@acm.org>
Thu, 2 May 2002 05:57:07 +0000 (05:57 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 2 May 2002 05:57:07 +0000 (05:57 +0000)
and xrange objects.
This closes SF bug #550555.

Doc/lib/libstdtypes.tex

index 5353cfddaa31c6eb3c8326331ff0123c09386678..0a4324aaf58d4ea7d338b299fb136f9e507a48bc 100644 (file)
@@ -388,15 +388,17 @@ item tuple must have a trailing comma, e.g., \code{(d,)}.
 
 Buffer objects are not directly supported by Python syntax, but can be
 created by calling the builtin function
-\function{buffer()}.\bifuncindex{buffer}.  They don't support
-concatenation or repetition.
+\function{buffer()}.\bifuncindex{buffer}.  They support
+concatenation and repetition, but the result is a new string object
+rather than a new buffer object.
 \obindex{buffer}
 
 Xrange objects are similar to buffers in that there is no specific
-syntax to create them, but they are created using the \function{xrange()}
-function.\bifuncindex{xrange}  They don't support slicing,
-concatenation or repetition, and using \code{in}, \code{not in},
-\function{min()} or \function{max()} on them is inefficient.
+syntax to create them, but they are created using the
+\function{xrange()} function.\bifuncindex{xrange}  They don't support
+slicing or concatenation, but do support repetition, and using
+\code{in}, \code{not in}, \function{min()} or \function{max()} on them
+is inefficient.
 \obindex{xrange}
 
 Most sequence types support the following operations.  The \samp{in} and