Christian Heimes wote:
Laszlo Nagy wrote:
IMHO it is much cleaner to implement this as a decorator. Pro: transparent passing of positional and keyword arguments, keeps function documentation.

You are entitled to your opinion but I STRONGLY recommend against your
decorator. You MUST NOT start threads as a side effect of a module
import.
That decorator will not start threads at module import time, except if you call the decorated function at module import time. I trust your opinion, and I won't call such decorated functions at import time. :-)

 L
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to