[issue8581] Logging handlers do not handle double-closing very well

Vinay Sajip report at bugs.python.org
Sat May 1 11:52:00 CEST 2010


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

----- Original Message ----

> From: Santoso Wijaya <report at bugs.python.org>
> File-like objects handle multiple close() gracefully, silently 
> making the second and subsequent close() calls to an already closed I/O object 
> do nothing. Why can't the same expectation be applied to logging 
> handlers?

I'm not objecting to the change on philosophical grounds, merely commenting that it doesn't happen in 2.7/3.2 and suggesting it's not worth fixing in 2.6/3.1.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8581>
_______________________________________


More information about the Python-bugs-list mailing list