Antoine Pitrou <pit...@free.fr> added the comment: > Handler.__init__ no longer adds the handler instance to the _handlers > map unconditionally, but still adds it to the _handlerList array. The > only place this array is actually used is in the shutdown() API, which > is registered to be run via atexit. It flushes and closes all the > handlers in the list, so that any data in logging buffers gets flushed > before the process exits.
Why is this exactly? Why do you want to keep handlers until shutdown rather than dispose of them when they aren't used anymore? Moreover, closing in atexit is rather bad because the resources necessary for proper closing (files, sockets...) may already have been freed. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6615> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com