Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Visibility of user defined attributes in numpy ndarray subclasses

Open
#1,754 1 comment 0 reactions 1 assignee View on GitHub

@heejaechang is already working on this.

Since Dec 4, 2024.

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
Python
Stars
2.5k
Forks
202
Avg merge
5d 1h
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/debugpy

All issues in microsoft/debugpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.