From c3c126b0dcab4801751e8ce3dd5f578730287b57 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Thu, 23 Jul 2009 04:19:20 +0000 Subject: and more tiny doc typos --- numpy/doc/subclassing.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'numpy') diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py index 52059d197..257f951ce 100644 --- a/numpy/doc/subclassing.py +++ b/numpy/doc/subclassing.py @@ -471,7 +471,7 @@ we wanted: So, by defining a specific ``__array_wrap__`` method for our subclass, we can tweak the output from ufuncs. The ``__array_wrap__`` method -requires ``self``, then an argument - which is the result of the ufunc, +requires ``self``, then an argument - which is the result of the ufunc - and an optional parameter *context*. This parameter is returned by some ufuncs as a 3-element tuple: (name of the ufunc, argument of the ufunc, domain of the ufunc). ``__array_wrap__`` should return an instance of @@ -516,6 +516,5 @@ the original array is deleted, but not the views. For an example of how this can work, have a look at the ``memmap`` class in ``numpy.core``. -.. _Python __new__: """ -- cgit v1.2.1