summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2020-02-01 01:14:31 -0800
committerSebastian Berg <sebastian@sipsolutions.net>2020-02-01 08:55:29 -0800
commit35bfd4846d17f1eedd0bcc4a6b47fcf8688c48e2 (patch)
treef8c0261a41e81bb224abfefaa77f7ab4144dd927 /numpy/array_api/_array_object.py
parent6dbfbc5da438ee6025ca26fab1c452b326061076 (diff)
downloadnumpy-35bfd4846d17f1eedd0bcc4a6b47fcf8688c48e2.tar.gz
MAINT: Use `.identifier = val` intializer for all type related structs
This changes it for most occurances (not quite all), some small slots, e.g. the buffer interface, are not changed unless close to another defintion. There are no large chuncks of "filler" zeros left though (except in rationaltests.c.src). --- This was not used previously due to it requiring C99. Python itself acknowledges that it can be used (they do almost not use it as of now), except inside header files due to C++ compatibility. See also (Found by Eric Wieser in PR): https://mail.python.org/pipermail/python-dev/2017-January/147154.html and PEP 7: https://www.python.org/dev/peps/pep-0007/#c-dialect
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions