On Jul 11, 7:45 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Alex Popescu wrote: > > On Jul 11, 4:15 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> > Forgive my newbie ignorance, but I am wondering why the other method > >> > would not work? I mean it may not be very safe, > >> > but I guess it may perform a lot better, than having to read the whole > >> > file just to cut out the first byte. > > >> Because seeking is not moving? Shifting data bytewise isn't something > >> that is supported by the underlying OS filesystems, and thus not > >> supported. But replacing bytes with others is. Which seek is for. > > >> Diez > > > As far as I know seek is just about positioning and nothing else. > > It is. > > > So, in fact the problem boils down to os support for deleting a bytes. > > Which there isn't, as I and several others pointed out. And "replacing" is > not removing. > > Diez
I do agree with your last statement (and it was my mistake to consider replacing a possible way to remove). Just wanted to clarify that seek is only for positioning. bests, ./alex -- .w( the_mindstorm )p. -- http://mail.python.org/mailman/listinfo/python-list