concurrent/futures/process.py: mp.util.debug is called, but mp.util is never imported
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Python
- Estrelas
- 77.2k
- Forks
- 36k
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 558
Descrição
Bug report
In Lib/concurrent/futures/process.py, mp.util.debug is called, but mp.util is never imported.
This leads to the following:
Exception ignored in: <function _ExecutorManagerThread.__init__.<locals>.weakref_cb at 0x----------->
Traceback (most recent call last):
File "python3.10/concurrent/futures/process.py", line 288, in weakref_cb
AttributeError: 'NoneType' object has no attribute 'util'
My environment is Python 3.10, but this bug exists in the latest cpython.
My impression is that this is relic debug code (but if it is not, non-working code is not helpful). I am about to make a PR removing this debug code.
- PR: gh-99369
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece por Lib/concurrent/futures/process.py e inspecione o callback de weakref em torno da chamada mp.util.debug relatada. Revise o PR gh-99369 para entender o trabalho já em andamento e, em seguida, execute os testes relevantes de concurrent.futures; considera-se concluído quando o callback não gerar mais o AttributeError relatado.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- distributed-systems
- Tipo de issue
- Bug
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 25/100