Hacker News new | ask | show | jobs
by ninadmhatre 3712 days ago
I dont have access to python 3.5 but i tried above code with some modifications and it worked!

1. `while True` has no break condition and that intentional but `mt.join()` basically waits till all threads are completed? are you looking thread that keeps on running? i suggest look at daemon thread? if yes, check this https://pymotw.com/2/threading/#daemon-vs-non-daemon-threads

2. `return` & `yield from None` are not required! I had commented those lines, also 'from' is a reserved keyword

1 comments