FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BUG: fix vdot returning None for empty object arrays by MeGaurav4 · Pull Request #31745 · numpy/numpy · GitHub

/ numpy Public

BUG: fix vdot returning None for empty object arrays - #31745

Closed
MeGaurav4 wants to merge 1 commit into
numpy:mainfrom
MeGaurav4:fix/vdot-empty-object-31735
Closed

BUG: fix vdot returning None for empty object arrays#31745
MeGaurav4 wants to merge 1 commit into
numpy:mainfrom
MeGaurav4:fix/vdot-empty-object-31735

Conversation

Copy link
Copy Markdown

np.vdot on zero-length object arrays returns None instead of 0,
matching the same bug that was fixed in vecdot (#31033).

Add a zero-length guard in OBJECT_vdot to return PyLong_FromLong(0),
consistent with the numeric type behavior.

Closes #31735.

Copy link
Copy Markdown
Member

You ignored the PR template, so I'm going to assume that this PR has been made with agentic AI. We don't allow that here, because we prefer to talk to humans.

jorenham closed this Jun 24, 2026

Copy link
Copy Markdown
Author

@jorenham My apologies for skipping the PR template — that was my mistake. You're right that agentic AI was involved in drafting this PR, and I should have disclosed that upfront and followed the template. I'll make sure to do so in future contributions. Thanks for your time reviewing.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: vdot of object arrays along zero-length is None

2 participants


Back | FazBrowse Home | New Git URL