[issue17808] No code example for Event object in threading module

2020-11-17 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue17808] No code example for Event object in threading module

2013-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: An example should generally show something interesting or non-obvious, which isn't the case here. IMHO an Event is simple enough to use that it doesn't need an example; furthermore, the example you are proposing doesn't really showcase anything interesting,

[issue17808] No code example for Event object in threading module

2013-04-21 Thread Andriy Mysyk
Andriy Mysyk added the comment: Thank you for the feedback, Antoine. The example shows how to essentially kill threads through an event facilitated request, something that I consider to be useful and non-obvious. I trust that you and others will make the right decision and will keep your

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
New submission from Andriy Mysyk: Documentation for Event objects in threading module could be more clear with a code example. http://docs.python.org/3.4/library/threading.html#event-objects -- messages: 187486 nosy: amysyk priority: normal severity: normal status: open title: No code

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: I will create a code example by the end of Sunday, April 21. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17808 ___

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: See the patch with a code example attached. -- assignee: - docs@python components: +Documentation keywords: +patch nosy: +docs@python Added file: http://bugs.python.org/file29963/bug17808.patch ___ Python tracker

[issue17808] No code example for Event object in threading module

2013-04-20 Thread Andriy Mysyk
Andriy Mysyk added the comment: Example added to threading.rst For example, the following code demonstrates a controlled thread termination using an event object. The event is used to request the termination of several threads. import threading import time stopevent = threading.Event()