seek() tell()

Enrique Palomo enrique.palomo at xgs-spain.com
Wed Feb 5 06:56:46 EST 2003


Hello all

In a script i have wrote:
...
        pi=fo.tell()
        fo.write(string.join(documento, '\n')+'\n')
        pf=fo.tell()
        DICC[c]=[pi, pf]
...

After, by a wxListbox event, you can see only a part of a big file.

pi works well, but pf-pi is bigger than len(string.join(documento,
'\n')+'\n')

Doesn´t it be with the same value??

This make my script works wrong because in notepad shows n bytes from
another document.

Thanks

Enrique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030205/1a96a600/attachment.html>


More information about the Python-list mailing list