If StringIO is not allowed to over-seek, what should happen to the
current file position when it is truncated?
>>> s = StringIO("Hello world!")
>>> s.seek(0, 2)
>>> s.truncate(2)
>>> s.tell()
???
Truncating can either set the position to the new string size, or it
leaves it alone.
-- Alexandre
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com