On 03/07/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > I also find the semantic make more sense too. For example: > > >>> s = StringIO("Good bye, world") > >>> s.truncate(10) > >>> s.write("cruel world") > >>> s.getvalue() > ??? > > I think that should return "Good bye, cruel world", not "cruel world". > > So, does anyone else agree with this small semantic change of truncate()?
Looks reasonable to me - without checking documentation, your proposal is what I'd expect the example to do. Paul. _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com