This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger
Date 2014-07-20.06:56:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405839394.09.0.812488093428.issue22013@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, threading.Thread requires that group=None pending implementation of a ThreadGroup class such as that described in http://www.javaworld.com/article/2074481

This has been an open todo for very long time, possibly because it may be too big of a task to implement all the features including subgroups.

I think we can implement a small but useful set of features without too much difficultly:

path_explorers = threading.ThreadGroup('path_explorers')
for path in paths:
    threading.Thread(path_explorers, explore, (path,))
for thread in path_explorers: # enumerate unfinished explorers
    print(thread)
path_explorers.start()        # begin parallel search
path_explorers.join()         # wait for group to finish
print("Result:", best_path)
History
Date User Action Args
2014-07-20 06:56:34rhettingersetrecipients: + rhettinger
2014-07-20 06:56:34rhettingersetmessageid: <1405839394.09.0.812488093428.issue22013@psf.upfronthosting.co.za>
2014-07-20 06:56:34rhettingerlinkissue22013 messages
2014-07-20 06:56:33rhettingercreate