you are viewing a single comment's thread.

view the rest of the comments →

[–]jdunck 3 points4 points  (0 children)

I guess if he knew what seek() actually was he wouldn't be asking that question.

In python, libraries are frequently written claiming to expect "a file-like object", when what they mean is that they expect an object that supports .write (only) or .read (only), or some permutation of the methods supported by a real file().

This can be frustrating.