[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-11-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f09e3b1603ee by Florent Xicluna in branch '2.7': Issue #13140: Fix the daemon_threads attribute of ThreadingMixIn. http://hg.python.org/cpython/rev/f09e3b1603ee New changeset 94017ce9304d by Florent Xicluna in

[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-11-03 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I agree it is a bug. It does not make sense to preserve this behaviour. I plan to apply the initial patch by Charles-François to 2.7 and 3.x. -- ___ Python tracker rep...@bugs.python.org

[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-11-03 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- assignee: - flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13140 ___ ___

[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-10-23 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I would prefer to preserve the inheritance by default, and to change the daemonic attribute only if it is explicitly set to True or False. This way it will be backward compatible. It may be backward compatible, but IMHO, the

[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-10-22 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I would prefer to preserve the inheritance by default, and to change the daemonic attribute only if it is explicitly set to True or False. This way it will be backward compatible. Patch attached. -- versions: -Python 2.6

[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-10-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Start a new thread to process the request. t = threading.Thread(target = self.process_request_thread, args = (request, client_address)) if self.daemon_threads: t.daemon =

[issue13140] ThreadingMixIn.daemon_threads is not honored when parent is daemon

2011-10-09 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: I use the socketserver.ThreadingMixIn to create a TCPServer. I set the server thread as daemon (t.daemon=True). But I want the client threads to run as non-daemon. According to the documentation, the daemon_threads class attribute