Re: Relative seeks on string IO

2011-09-07 Thread Pierre Quentel
> > Please post code without non-code indents, like so: > Sorry about that. After the line "Example :" I indented the next block, out of habit ;-) > > What system are you using? Does it have a narrow or wide unicode build? > (IE, what is the value of sys.maxunicode?) > I use Windows XP Pro, version

Re: Relative seeks on string IO

2011-09-06 Thread Terry Reedy
On 9/6/2011 3:18 AM, Pierre Quentel wrote: I am wondering why relative seeks fail on string IO in Python 3.2 Good question. from io import StringIO txt = StringIO('Favourite Worst Nightmare') txt.seek(8) # no problem with absolute seek Please post code without non-code inden