kecnry / nparray

High-Level Wrappers for Building and Manipulating Numpy Arrays
https://nparray.readthedocs.io
GNU General Public License v3.0
0 stars 0 forks source link

fake type and instance #6

Open kecnry opened 7 years ago

kecnry commented 7 years ago

perhaps by subclassing np.ndarray itself so type(nparrayobject) and isinstance(nparrayobject, np.ndarray) will show that the object acts as a numpy array

kecnry commented 7 years ago

but, you can now do isinstance(nparrayobject, nparray.ndarray)

kecnry commented 7 years ago

isinstance(nparrayobject, np.ndarray) now returns True