| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
I don't know if the parameters are meant to be public but the signature indeed needs to be correct for possible subclassing.
However, prepare_context is not documented so we can't even know how to use them. So we need to also document this at the same time.
Sorry, something went wrong.
ctxkwargs argument described in ThreadPoolExecutor.__init__ docstring. And maybe I'm missing something but this is what the class method prepare_context looks like (I don't know how **ctxkwargs should be passed here if this argument is omitted in prepare_context): cpython/Lib/concurrent/futures/thread.py Lines 157 to 187 in 5ab66a8 |
Sorry, something went wrong.
in this case, we should wait for Eric's feedback. I'm away until Saturday so I won't be able to reply in the meantime. |
Sorry, something went wrong.
|
Thanks everyone for suggestions, now it looks complete |
Sorry, something went wrong.
| pending jobs will raise a :exc:`~concurrent.futures.thread.BrokenThreadPool`, | ||
| as well as any attempt to submit more jobs to the pool. | ||
|
|
||
| *ctxkwargs* is a mapping of additional keyword arguments passed to |
There was a problem hiding this comment.
The ctxkwargs parameter is special -- it does not correspond to a single argument. I am not even sure that it should be documented, since it is only purpose is to be able to pass shared to prepare_context() in InterpreterPoolExecutor(). It may be an implementation detail, in which case I am not sure that it should be documented.
If we still document this, I would write something like "Any addition keyword arguments are passed to prepare_context()." And updated the docstring correspondingly.
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
based: #129669 (comment)
needs backport only to 3.14
📚 Documentation preview 📚: https://cpython-previews--134321.org.readthedocs.build/en/134321/library/concurrent.futures.html