[Numpy-discussion] Custom dtypes without C -- or, a standard ndarray-like type
toddrjen at gmail.com
Tue Sep 23 05:31:46 EDT 2014
On Mon, Sep 22, 2014 at 5:31 AM, Nathaniel Smith <njs at pobox.com> wrote:
> On Sun, Sep 21, 2014 at 7:50 PM, Stephan Hoyer <shoyer at gmail.com> wrote:
> My feeling though is that in most of the cases you mention,
> implementing a new array-like type is huge overkill. ndarray's
> interface is vast and reimplementing even 90% of it is a huge effort.
> For most of the cases that people seem to run into in practice, the
> solution is to enhance numpy's dtype interface so that it's possible
> for mere mortals to implement new dtypes, e.g. by just subclassing
> np.dtype. This is totally doable and would enable a ton of
> awesomeness, but it requires someone with the time to sit down and
> work on it, and no-one has volunteered yet. Unfortunately it does
> require hacking on C code though.
I'm unclear about the last sentence. Do you mean "improving the dtype
system will require hacking on C code" or "even if we improve the dtype
system dtypes will still have to be written in C"?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion