python / python/cpython

Adjust _Py_MAX_MANAGED_STATIC_BUILTIN_TYPES value automatically

Aberta
#145,497 10 comentários 0 reações 1 responsável Ver no GitHub

@corona10 já está trabalhando nisso.

Desde 5/3/2026.

interpreter-core topic-C-API type-feature
Linguagem predominante
Python
Estrelas
77.2k
Forks
35.9k
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

When a new built-in type is introduced, _Py_MAX_MANAGED_STATIC_BUILTIN_TYPES needs to be updated accordingly.
(e.g., https://github.com/python/cpython/commit/3e2f5c133f37f13f627404f3cbd54a5fc163887a, https://github.com/python/cpython/pull/145496#issuecomment-3997827812)

This is quite painful, and sometimes we even forget to adjust it. To prevent this kind of issue, we may need a way to update it automatically, or add a test that verifies it is set correctly.

cc @markshannon @Fidget-Spinner @vstinner

Linked PRs
  • gh-149139
  • gh-151004
  • gh-151152
  • gh-157582

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.