[Python-Dev] Iterating a closed StringIO
walter at livinglogic.de
Thu Nov 17 21:21:48 CET 2005
Currently StringIO.StringIO and cStringIO.StringIO behave differently
when iterating a closed stream:
s = StringIO.StringIO("foo")
gives StopIteration, but
s = cStringIO.StringIO("foo")
gives "ValueError: I/O operation on closed file".
Should they raise the same exception? Should this be fixed for 2.5?
More information about the Python-Dev