Methods on file-like objects can only used once on one object?
paul at subsignal.org
Tue Aug 23 11:28:11 EDT 2011
Am 23.08.2011 16:21, schrieb Yingjie Lin:
> Hi Python users,
> There are quite a few methods for file-like objects that can only be used once on one object. If I prefer to use some of these methods on one object, one after another, like:
> What should I do? Thank you.
use f.seek(0) between calls. The python documentation will educate you
about the details.
More information about the Python-list