diff Modules/cStringIO.c @ 22218:5440e4b17aff 2.2

backport jhylton's checkin of revision 2.33 of cStringIO.c Fix SF bug #526518 The doc string for cStringIO suggested that str() of a StringIO object was equivalent to getvalue(). This was never true, so repair the doc string. (doctest would have helped here.) Bug fix candidate for any past versions.
author Michael W. Hudson <mwh@python.net>
date Mon, 11 Mar 2002 10:02:18 +0000
parents 91dd223829c6
children f1af8ad11000
line wrap: on
line diff
--- a/Modules/cStringIO.c	Sun Mar 10 21:33:19 2002 +0000
+++ b/Modules/cStringIO.c	Mon Mar 11 10:02:18 2002 +0000
@@ -67,7 +67,7 @@
 "  an_output_stream=StringIO()\n"
 "  an_output_stream.write(some_stuff)\n"
 "  ...\n"
-"  value=an_output_stream.getvalue() # str(an_output_stream) works too!\n"
+"  value=an_output_stream.getvalue()\n"
 "\n"
 "  an_input_stream=StringIO(a_string)\n"
 "  spam=an_input_stream.readline()\n"