diff options
| author | Antony Lee <anntzer.lee@gmail.com> | 2021-09-29 20:09:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-29 13:09:32 -0500 |
| commit | a6f7d14e60e3d56fe1c0073730a06e23cf696c5a (patch) | |
| tree | 4f836f1bb7532f7b9265f9d07a868a61c4e79bbe /numpy/array_api/_constants.py | |
| parent | e7f5d62f793379a62d1c351eedaa3a59f6f542d5 (diff) | |
| download | numpy-a6f7d14e60e3d56fe1c0073730a06e23cf696c5a.tar.gz | |
ENH: Add spaces after punctuation in dtype repr/str. (#19686)
Before:
```
In [1]: np.dtype({"names": ["a"], "formats": [int], "offsets": [2]})
Out[1]: dtype({'names':['a'], 'formats':['<i8'], 'offsets':[2], 'itemsize':10})
```
After:
```
In [1]: np.dtype({"names": ["a"], "formats": [int], "offsets": [2]})
Out[1]: dtype({'names': ['a'], 'formats': ['<i8'], 'offsets': [2], 'itemsize': 10})
```
* Allow switching back to old dtype printing format.
* Add changelog.
Diffstat (limited to 'numpy/array_api/_constants.py')
0 files changed, 0 insertions, 0 deletions
