Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Visibility of user defined attributes in numpy ndarray subclasses

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

@heejaechang đang làm issue này rồi.

Từ ngày 4/12/2024.

Đánh giá

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

Mô tả

needs repro

Hello everyone,

I'm not 100% sure if this is the correct address to make this request but the issue/request I have is as follows:
When subclassing numpy arrays to add attributes/properties on top of the numpy array, all of the properties get packed into the __internals__ special variable. While all values are gathered and correctly displayed, it is quite inconvenient to have them be bunched into the __internals__ variable.

I included the two example images to show the problem:

Where the attribute is located:
Image

vs. where you probably want to see the attribute:
Image

Ngôn ngữ chính
Python
Star
2.5k
Fork
205
Merge trung bình
1 ngày 43 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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.

Issue khác của microsoft/debugpy

Tất cả issue của microsoft/debugpy

Issue tương tự

Thêm issue về Python

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.