diff options
author | Fred Drake <fdrake@acm.org> | 2002-05-02 05:56:04 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-05-02 05:56:04 (GMT) |
commit | 4b270518b741d037ac8355a26a132b05a2639dce (patch) | |
tree | 6f8da5acb164557ab404acb8f7e55d6d47d599a0 /Doc | |
parent | 485f340d52423bcd46cd9fa396f64b06252e789a (diff) | |
download | cpython-4b270518b741d037ac8355a26a132b05a2639dce.zip cpython-4b270518b741d037ac8355a26a132b05a2639dce.tar.gz cpython-4b270518b741d037ac8355a26a132b05a2639dce.tar.bz2 |
Correct information on support for repietition & concatenation for buffer
and xrange objects.
This closes SF bug #550555.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 75787ba..b077fb8 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -393,15 +393,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 |