[Numpy-discussion] numpy array change notifier?
Mon Oct 27 16:10:38 CDT 2008
On Mon, Oct 27, 2008 at 1:56 PM, Robert Kern <email@example.com> wrote:
> On Mon, Oct 27, 2008 at 15:54, Erik Tollerud <firstname.lastname@example.org> wrote:
>> Is there any straightforward way of notifying on change of a numpy
>> array that leaves the numpy arrays still efficient?
> Not currently, no.
> Robert Kern
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
> -- Umberto Eco
> Numpy-discussion mailing list
out of curiosity,
would something like this affect efficiency (and/or work):
def __setitem__(self, *args):
return super(Notify, self).__setitem__(*args)
def notify(self, *args):
print 'notify:', args
with also overriding setslice?
More information about the Numpy-discussion