[issue22013] Add at least minimal support for thread groups

2022-03-21 Thread Irit Katriel
Irit Katriel added the comment: And now we have TaskGroups in asyncio as well. I'm closing this as it seems to have been abandoned. Feel free to reopen if this is still needed. -- nosy: +iritkatriel stage: needs patch -> resolved status: open -> closed __

[issue22013] Add at least minimal support for thread groups

2014-07-21 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Charles-François Natali
Charles-François Natali added the comment: > Tin Tvrtković added the comment: > > For your examples, my first instinct would be to use a thread pool executor. > It's a nice high level API and can already do the aggregate join. Indeed, the examples posted don't make much sense: thread/process po

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Claudiu Popa
Claudiu Popa added the comment: This seems indeed like a weaker version of ThreadPoolExecutor. Here's how your example looks with it, not very different and still easy to understand and grasp: from concurrent.futures import ThreadPoolExecutor from urllib.request import urlretrieve with Threa

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Tin Tvrtković
Tin Tvrtković added the comment: For your examples, my first instinct would be to use a thread pool executor. It's a nice high level API and can already do the aggregate join. -- nosy: +tinchester ___ Python tracker

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Even the Java API doesn't look very useful. This isn't a Java-only concept. It is widely available. Here's a sample: c++ "thread_group provides for a collection of threads that are related in some fashion." http://www.boost.org/doc/libs/1_35_0/doc/html/

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg223544 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: c++ "thread_group provides for a collection of threads that are related in some fashion." http://www.boost.org/doc/libs/1_35_0/doc/html/thread/thread_management.html#thread.thread_management.threadgroup perl "Thread::Pool - group of threads for performing si

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +Christian.Tismer, aleax, kristjan.jonsson, lemburg ___ Python tracker ___ ___ Python-bugs-lis

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The example looks like something you could use concurrent.futures for The example was minimal to show how it works. The concept of having groups of related threads is perfectly general. It is a tool for organizing and reasoning about code more complex t

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file35998/parallel_download_application.py ___ Python tracker ___ ___ Pyth

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file36007/parallel_download_application.py ___ Python tracker ___ ___ Python

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread R. David Murray
R. David Murray added the comment: The example looks like something you could use concurrent.futures for and get more features besides? -- nosy: +r.david.murray ___ Python tracker _

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have a hard time understanding what it would bring in Python's context. Even the Java API doesn't look very useful. -- nosy: +neologix, pitrou ___ Python tracker ___

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file35999/threadgroup.diff ___ Python tracker ___ __

[issue22013] Add at least minimal support for thread groups

2014-07-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file35998/parallel_download_application.py ___ Python tracker ___ ___ Python

[issue22013] Add at least minimal support for thread groups

2014-07-19 Thread Raymond Hettinger
New submission from Raymond Hettinger: 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 t