Re: What happens when python seeks a text file

2015-07-29 Thread Cameron Simpson
On 29Jul2015 07:52, dieter wrote: "=?GBK?B?wO68zsX0?=" writes: Hi, I tried using seek to reverse a text file after reading about the subject in the documentation: https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects https://docs.python.org/3/library/io.html#io.TextIOBase

Re: What happens when python seeks a text file

2015-07-28 Thread dieter
"=?GBK?B?wO68zsX0?=" writes: > Hi, I tried using seek to reverse a text file after reading about the > subject in the documentation: > > https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects > > https://docs.python.org/3/library/io.html#io.TextIOBase.seek > ... > However, an

What happens when python seeks a text file

2015-07-28 Thread 李嘉鹏
Hi, I tried using seek to reverse a text file after reading about the subject in the documentation: https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects https://docs.python.org/3/library/io.html#io.TextIOBase.seek The script "reverse_text_by_seek3.py" produces expected res