I got motivated and implemented parts of subtypes on ndarray in the
ndarray-subtype branch.
This page
http://docs.scipy.org/doc/numpy/user/basics.subclassing.html
describes the numpy way, so I did
ndarray.view(subtype)
as well, but I did not yet do the slice (they call it template) nor did
I do __array_finalize__
Failing tests and patches are welcome
Matti
Hi Remi,
Just a note about major collections and the handling of h_original in
stmgc: as you said in an XXX we don't need to *trace* the h_original
object, but only keep it alive. But also, I thought some time ago
about a trick to improve the overall performance of prebuilt objects,
which is to copy the latest public copy *back* over the original
prebuilt copy. This idea can be combined with the goal of keeping
h_original: we would always copy the current copy back over the copy
designated …
[View More]by h_original, and free all other copies (including the
current copy).
A bientôt,
Armin.
[View Less]