[issue9946] lock use in logging

2010-09-27 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
superseder:  - Improper locking in logging

___
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



[issue9946] lock use in logging

2010-09-25 Thread Georg Brandl

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



[issue9946] lock use in logging

2010-09-25 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Dupe of #9945, sorry.

--
resolution:  - duplicate
status: open - closed

___
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