New submission from Markus Mohrhard :
The ThreadPoolExecutor in BaseEventLoop.run_in_executor should set a
thread_name_prefix to simplify debugging.
Might also be worth to limit the number of max threads. On our 256 core
machines we sometimes get 1000+ threads due to the cpu_count() * 5
Change by Markus Mohrhard :
--
keywords: +patch
pull_requests: +17832
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18458
___
Python tracker
<https://bugs.python.org/issu
Markus Mohrhard added the comment:
We have by now changed to a custom executor. Asyncio is used in some of our
dependencies and therefore it took some work to figure out what is creating the
thousands of threads that we were seeing.
This patch was part of the debuggin and we thought it
New submission from Markus Mohrhard :
We have hit an issue in the pickle module where the code throws an exception in
a threaded environment:
The interesting piece of the backtrace is:
File "/xxx/1004060/lib/python3.7/site-packages/numpy/core/__init__.py", line
130, in _uf
New submission from Markus Mohrhard :
The following piece of code
import pickle
pickle.loads(pickle.dumps(1, protocol=pickle.HIGHEST_PROTOCOL), buffers=None)
fails with "TypeError: 'NoneType' object is not iterable"
The corresponding PEP (https://www.python.org/dev/peps/
Change by Markus Mohrhard :
--
keywords: +patch
pull_requests: +14409
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/14593
___
Python tracker
<https://bugs.python.org/issu
Change by Markus Mohrhard :
--
title: Pure Python pickle module should not depend on _pickle.PickleBuffer ->
Fix default argument handling for buffers argument in pickle.loads
___
Python tracker
<https://bugs.python.org/issu
Markus Mohrhard added the comment:
Sorr, I somehow managed to overwrite my title before submitting with the one
from one if the results of my searches.
--
___
Python tracker
<https://bugs.python.org/issue37