python / python/cpython

Add tests on basic `PyStackRef` functions

Đang mở
#139,716 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@efimov-mikhail đang làm issue này rồi.

Từ ngày 16/10/2025.

extension-modules tests type-feature
Ngôn ngữ chính
Python
Star
77.2k
Fork
35.9k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.