[New-bugs-announce] [issue30519] Add daemon argument to Timer
report at bugs.python.org
Tue May 30 22:54:13 EDT 2017
New submission from Andre Wolokita:
Currently in order to have daemonic Timer objects one must instantiate the class, set daemonic status through the property (Timer.daemon=True), and then start the Timer. It would be nice to have the ability to set the daemonic status of the Timer class during instantiation, similar to what is possible with the Thread superclass.
This is a trivial enhancement to implement: simply add the daemon keyword argument to the Timer constructor, defaulted to None, and pass it on to the Thread constructor in the call to super().__init__.
title: Add daemon argument to Timer
versions: Python 3.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce