logging.FileHandler diff Py2 v Py3

Paul Moore p.f.moore at gmail.com
Tue Apr 3 13:04:45 EDT 2018


On 3 April 2018 at 17:54, Peter Otten <__peter__ at web.de> wrote:
> I think the culprit is io.open() rather than the logging module. Why does
>
>>>> io.open("/dev/stderr", "a")
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> OSError: [Errno 29] Illegal seek
>
> even try to seek()?

Because it's append mode so it needs to go to the end?

Paul



More information about the Python-list mailing list