diff options
author | Georg Brandl <georg@python.org> | 2007-08-08 13:03:41 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-08 13:03:41 (GMT) |
commit | 9616444427cbbc5283f21a09ffa852ad21805588 (patch) | |
tree | 4e317891a8fc12947cad39710b84961ebc775221 /Doc | |
parent | 52c0c368b9d279f4972e15f596616a436e5e2a6e (diff) | |
download | cpython-9616444427cbbc5283f21a09ffa852ad21805588.zip cpython-9616444427cbbc5283f21a09ffa852ad21805588.tar.gz cpython-9616444427cbbc5283f21a09ffa852ad21805588.tar.bz2 |
Revert the fix for #1548891, it broke backwards compatibility with arbitrary read buffers.
Fixes #1730114.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libstringio.tex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/lib/libstringio.tex b/Doc/lib/libstringio.tex index 2431251..73ff0e4 100644 --- a/Doc/lib/libstringio.tex +++ b/Doc/lib/libstringio.tex @@ -78,6 +78,10 @@ Unlike the memory files implemented by the \refmodule{StringIO} module, those provided by this module are not able to accept Unicode strings that cannot be encoded as plain \ASCII{} strings. +Calling \function{StringIO()} with a Unicode string parameter populates +the object with the buffer representation of the Unicode string, instead of +encoding the string. + Another difference from the \refmodule{StringIO} module is that calling \function{StringIO()} with a string parameter creates a read-only object. Unlike an object created without a string parameter, it does not have |