python / python/cpython

Add tests on basic `PyStackRef` functions

Abierto
#139,716 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@efimov-mikhail ya está trabajando en esto.

Desde el 16/10/2025.

extension-modules tests type-feature
Lenguaje dominante
Python
Estrellas
77.2k
Forks
36k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

Feature or enhancement

Proposal:

Definitions of basic PyStackRef manipulation functions aren't so easy.
There are a lot of them, they have connections to each other and we have 3 variants of them now (GIL, no-GIL, PyStackRef debug).

It's easy to forget something when provide some change to them.
In fact, there is one of such issues for PyStackRef debug build: https://github.com/python/cpython/issues/135125

I propose to add tests that ensure all basic PyStackRef functions are correct in combination.

I've already have a PR.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs
  • gh-139717
  • gh-141675
  • gh-143024

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.