Message364129
tell() is opaque when opening a text file: you can't interpret the output, its only use is for input to seek().
From the docs https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects:
"f.tell() returns an integer giving the file object’s current position in the file represented as number of bytes from the beginning of the file when in binary mode and an opaque number when in text mode."
Does the value returned from tell() not work in seek()? That would be the only bug here. |
|
Date |
User |
Action |
Args |
2020-03-14 00:02:31 | eric.smith | set | recipients:
+ eric.smith, paul.moore, tim.golden, zach.ware, steve.dower, Cezary.Wagner |
2020-03-14 00:02:31 | eric.smith | set | messageid: <1584144151.13.0.000712723572792.issue39962@roundup.psfhosted.org> |
2020-03-14 00:02:31 | eric.smith | link | issue39962 messages |
2020-03-14 00:02:30 | eric.smith | create | |
|