Skip to content

BUG: revert unintended change in the return value of set_printoptions#27255

Merged
seberg merged 2 commits intonumpy:mainfrom
ngoldbaum:fix-printoptions
Aug 21, 2024
Merged

BUG: revert unintended change in the return value of set_printoptions#27255
seberg merged 2 commits intonumpy:mainfrom
ngoldbaum:fix-printoptions

Conversation

@ngoldbaum
Copy link
Member

Fixes #27254.

@ngoldbaum ngoldbaum added the 09 - Backport-Candidate PRs tagged should be backported label Aug 20, 2024
@ngoldbaum ngoldbaum added this to the 2.1.1 release milestone Aug 20, 2024
Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this seems the simplest option. Another option would be to go with it, i.e., document how token can be used, but, really, that is what printoptions is for.

@seberg
Copy link
Member

seberg commented Aug 21, 2024

Nice, thanks Nathan!

@seberg seberg merged commit 83cd89b into numpy:main Aug 21, 2024
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Aug 21, 2024
@charris charris removed this from the 2.1.1 release milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: np.set_printoptions() no longer silent under numpy 2.1.0

4 participants