Antoine Pitrou <pit...@free.fr> added the comment: Side note:
> One concern I do have - while writing the patch, I noticed the existing > submit method (specifically the adjust_thread_count function) isn't thread > safe. True. The executor is obviously thread-safe internally (as it handles multiple worker threads). But the user should not /call/ it from multiple threads. (most primitives exposed by the Python stdlib are not thread-safe, except for the simplest ones such as lists, dicts etc.) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24882> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com