GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TYP: Allow ``binary_repr`` to accept any object implementing ``__index__`` by BvB93 · Pull Request #24628 · numpy/numpy

Conversation

@BvB93

@BvB93 BvB93 commented Sep 3, 2023

Copy link
Copy Markdown
Member

Closes #24319

Allow binary_repr to accept both numpy integers as well as any object implementing the __index__ interface (considering the function makes an explicit call to operator.index).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@BvB93
TYP: Allow binary_repr to accept any object implementing __index__
767b00f
@BvB93 BvB93 added 09 - Backport-Candidate PRs tagged should be backported 41 - Static typing labels Sep 3, 2023
@charris
charris merged commit 0ed6bb1 into numpy:main Sep 3, 2023
@charris

charris commented Sep 3, 2023

Copy link
Copy Markdown
Member

Thanks Bas.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris charris mentioned this pull request Sep 3, 2023
TYP: Allow binary_repr to accept any object implementing __index__ #24629
Merged
@charris charris changed the title TYP: Allow binary_repr to accept any object implementing __index__ TYP: Allow binary_repr to accept any object implementing __index__ Sep 3, 2023
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Sep 3, 2023
@BvB93
BvB93 deleted the binary_repr branch September 3, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

41 - Static typing

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

BUG: (Typing) binary_repr does not seem to accept unsignedinteger[_8Bit] although it does

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@BvB93 @charris
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.