diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2020-01-31 00:16:15 -0800 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-03-18 17:29:34 -0500 |
commit | 1809a0fded50a877b20e1d4b2e2a6583dc3158d7 (patch) | |
tree | c141e5c1a2aa67fc8aab4fc045381ab3e73da321 /numpy/lib/nanfunctions.py | |
parent | 965b41d418e6100c1afae0b6f818a7ef152bc25d (diff) | |
download | numpy-1809a0fded50a877b20e1d4b2e2a6583dc3158d7.tar.gz |
API: Create Preliminary DTypeMeta class and np.dtype subclasses
This makes all dtypes being subclasses of a:
class DType(np.dtype):
is_abstract = False
is_flexible = False % True for void, strings, and datetimes
singleton = prototype_dtype_instance
# other information defined on the singleton currently
subclass of np.dtype.
Right now this happens by replacing the Type field of of the
singleton instance. This is valid for types/objects not created
in python (not HeapTypes). It is necessary to have this functionality
for continuing support of user defined legacy dtypes.
Diffstat (limited to 'numpy/lib/nanfunctions.py')
0 files changed, 0 insertions, 0 deletions