Right way to io.open(...) an existing file object in Python 2.7?
Jon Ribbens
jon+usenet at unequivocal.eu
Tue Jan 16 12:42:49 EST 2018
On 2018-01-16, Skip Montanaro <skip.montanaro at gmail.com> wrote:
> I'd like to take advantage of the seekable() method of io.IOBase with
> existing open file objects, especially the standard in/out/err file
> objects.
If it's difficult to imagine a circumstance in which you would want to
seek on stdio/out/err where you were not making some considerable error.
But they are already io objects so you can just call sys.stdin.seekable
or whatever.
More information about the Python-list
mailing list