New submission from Georg Brandl <ge...@python.org>: >From logging.Logger:
def removeHandler(self, hdlr): """ Remove the specified handler from this logger. """ if hdlr in self.handlers: hdlr.acquire() try: self.handlers.remove(hdlr) finally: hdlr.release() I don't see what the use is for locking the handler. The only shared resource that is accessed is self.handlers, which is not locked by the handler lock. ---------- assignee: vinay.sajip components: Library (Lib) keywords: easy messages: 117368 nosy: georg.brandl, vinay.sajip priority: normal severity: normal status: open title: lock use in logging type: behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9946> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com