summaryrefslogtreecommitdiff
path: root/numpy/doc/subclassing.py
diff options
context:
space:
mode:
authorMatthew Brett <matthew.brett@gmail.com>2008-08-27 10:09:59 +0000
committerMatthew Brett <matthew.brett@gmail.com>2008-08-27 10:09:59 +0000
commit6aa2c46129ca2e18aa5e720a9a45f8830f1bfb58 (patch)
tree0e76151e1fe252003ad4d7d8e0956d96cd2a6f1b /numpy/doc/subclassing.py
parent4f7b154e57713884b240fd916b536c08033d0be3 (diff)
downloadnumpy-6aa2c46129ca2e18aa5e720a9a45f8830f1bfb58.tar.gz
Point to example
Diffstat (limited to 'numpy/doc/subclassing.py')
-rw-r--r--numpy/doc/subclassing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/doc/subclassing.py b/numpy/doc/subclassing.py
index fa5f22253..f23cf6652 100644
--- a/numpy/doc/subclassing.py
+++ b/numpy/doc/subclassing.py
@@ -191,7 +191,7 @@ object.
Slightly more realistic example - attribute added to existing array
-------------------------------------------------------------------
-Here is a class (with thanks to PierreGM for the original example,
+Here is a class (with thanks to Pierre GM for the original example),
that takes array that already exists, casts as our type, and adds an
extra attribute::
@@ -246,9 +246,9 @@ __array_finalize__, and the attributes will be inherited.
By defining a specific __array_wrap__ method for our subclass, we can
tweak the output. The __array_wrap__ method requires one argument, the
object on which the ufunc is applied, and an optional parameter
-context. This parameter is returned by some ufuncs as a 3-element
+*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).
+ufunc). See the masked array subclass for an implementation.
Extra gotchas - custom __del__ methods and ndarray.base
-------------------------------------------------------