8000 ENH: Update scalar representations as per NEP 51 by seberg · Pull Request #22449 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Update scalar representations as per NEP 51 #22449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
Jul 26, 2023
Merged
Changes from 1 commit
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
20ac540
ENH: Changed repr of np.bool_
ganesh-k13 Oct 20, 2020
9af45ba
ENH: Used raw boolean value
ganesh-k13 Oct 20, 2020
587e6fd
ENH: Refactored to use PyUnicode_FromString
ganesh-k13 Oct 20, 2020
b573496
ENH: Fixed doc-string
ganesh-k13 Oct 21, 2020
d0ecf91
ENH: Added release notes (#17592)
ganesh-k13 Oct 26, 2020
4243ee7
ENH: Fixed release notes `np.bool_` repr (#17592)
ganesh-k13 Oct 27, 2020
7431a2d
Update doc/release/upcoming_changes/17592.improvement.rst
eric-wieser Nov 1, 2020
341c245
ENH: Changed repr of ints
ganesh-k13 Nov 20, 2020
f2119c6
ENH: Changed repr of ints to use tp_name
ganesh-k13 Nov 20, 2020
834f3f9
WIP: Get to the NEP 51 state (and try to figure that out...)
seberg Sep 14, 2022
4550643
TST: Fixup tests for repr changes
seberg Sep 14, 2022
eef1cbd
TST: Some more test fixups for repr changes
seberg Sep 19, 2022
b9d0cd3
TST: STrengthen test on newer Python versions
seberg Sep 19, 2022
46785ee
Fixup tests, repr, and guard against using full repr in array printing
seberg Sep 27, 2022
a7b045b
WIP: Continue with refactoring more...
seberg Sep 29, 2022
145998a
WIP: Refactor array formatter with a new `get_formatter`
seberg Oct 12, 2022
4e16d86
ENH: Fixup records and void scalar printing
seberg Oct 14, 2022
e7ce9eb
ENH: Only print type information when helpful for MA fill value
seberg Oct 14, 2022
b74dbfd
API: Switch `ndarray.tofile` back to defaulting to `str()` usage
seberg Oct 18, 2022
ae28524
TST: Fixup tests to make windows/32bit systems and linter happy
seberg Oct 18, 2022
6316dd4
Adapt format to not block s and r format codes
seberg Oct 21, 2022
e8f0492
WIP: Fixup arrayprint for scalar values
seberg Oct 21, 2022
413f1a7
MAINT: Switch to also have str explicitly, fixup MA and forward str/r…
seberg Oct 24, 2022
4c6ff64
DOC: Update reference to pass refguide
seberg Oct 24, 2022
3c0c3d2
STY: Fix linter
seberg Oct 24, 2022
1a53d88
BUG: Fixups for last changes to make CI pass
seberg Oct 24, 2022
a01c893
DOC: First small refdoc update (very verbose update required, too lar…
seberg Oct 24, 2022
6cceecc
DOC: Remove outdated release note (eventually need new referencing NEP)
seberg Oct 24, 2022
342b786
DOC: Fixup docs; only "big" changes not all scalars
seberg Oct 24, 2022
d681bac
fix rebase error
seberg Jun 21, 2023
90a8b61
MAINT: Allow all options again (because subarrays need them) and fix …
seberg Jun 30, 2023
815c8a1
DOC: More doc fixes to pass tests
seberg Jun 30, 2023
b6f83b6
MAINT: Special case string fill-value in MA repr
seberg Jul 4, 2023
afd5e87
DOC: Add a release note for NEP 51 related changes
seberg Jul 4, 2023
ea9063f
ENH; Add legacy fallback mode for non NEP 51 printing because...
seberg Jul 6, 2023
f0302f8
Allow legacy fallback (fix float16, heh)
seberg Jul 6, 2023
768fcf0
TST,MAINT: Add tests for both new and old scalar repr and fix complex
seberg Jul 10, 2023
66341e5
DOC: Mention `np.set_printoptions` in the release note
seberg Jul 10, 2023
62f9d5a
TST: Ensure little-endian int est
seberg Jul 10, 2023
01a1d29
Simplify, removing new fmt option
mhvk Jul 14, 2023
d40922d
Minimize changes relative to main
mhvk Jul 14, 2023
7a61d6d
Remove unnecessary legacy check and longdouble quoting support
seberg Jul 18, 2023
c8df697
MAINT: Undo bad rebase (or maybe small accidental commit)
seberg Jul 18, 2023
a6645e0
Address some other review comments
seberg Jul 18, 2023
6097389
Hack strings to be correct for fill-value
seberg Jul 18, 2023
7fcf5ca
Update release note and add note to NEP that it was not fully impleme…
seberg Jul 18, 2023
19ed59e
MAINT: Tweak string check (forgot the kind, but maybe tuple is nice)
seberg Jul 18, 2023
0329f18
Also force repr for object
seberg Jul 18, 2023
51eb71e
MAINT: A few small fixups from review
seberg Jul 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ENH: Added release notes (#17592)
  • Loading branch information
ganesh-k13 authored and seberg committed Jul 18, 2023
commit d0ecf914e7e39e84e90e5a33f4da12c5bb7aadf4
4 changes: 4 additions & 0 deletions doc/release/upcoming_changes/17592.improvement.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Change in ``np.bool_`` datatype element's string representation
-------------------------------------------------------------

``np.bool_`` string representation will no longer clash with python's builtin ``True`` and ``False``. New representations of ``np.bool_(True)`` and ``np.bool_(False)`` will be ``numpy.True_`` and ``numpy.False_`` respectively.
0