diff options
author | Raymond Hettinger <python@rcn.com> | 2005-04-11 01:03:44 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-04-11 01:03:44 (GMT) |
commit | fc11383ec384ddfe103364d4476cf14656381751 (patch) | |
tree | 279635e8f1d51b38886a4c52d58cf5a8d409c6a8 | |
parent | e490502e04f3c3847bd58183f4b6f284880c8709 (diff) | |
download | cpython-fc11383ec384ddfe103364d4476cf14656381751.zip cpython-fc11383ec384ddfe103364d4476cf14656381751.tar.gz cpython-fc11383ec384ddfe103364d4476cf14656381751.tar.bz2 |
SF bug #1180392: StringIO's docs should mention overwriting of initial value
* Added a note that the initial file position is zero even if the object
is freshly initialized.
-rw-r--r-- | Doc/lib/libstringio.tex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/lib/libstringio.tex b/Doc/lib/libstringio.tex index 786427f..3992e43 100644 --- a/Doc/lib/libstringio.tex +++ b/Doc/lib/libstringio.tex @@ -14,6 +14,7 @@ files}). See the description of file objects for operations (section When a \class{StringIO} object is created, it can be initialized to an existing string by passing the string to the constructor. If no string is given, the \class{StringIO} will start empty. +In both cases, the initial file position starts at zero. The \class{StringIO} object can accept either Unicode or 8-bit strings, but mixing the two may take some care. If both are used, |