summaryrefslogtreecommitdiff
path: root/numpy/doc/glossary.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/doc/glossary.py')
-rw-r--r--numpy/doc/glossary.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/doc/glossary.py b/numpy/doc/glossary.py
index 2431516a8..6d2e0010f 100644
--- a/numpy/doc/glossary.py
+++ b/numpy/doc/glossary.py
@@ -182,7 +182,7 @@ Glossary
instance
A class definition gives the blueprint for constructing an object::
- >>> class House(object):
+ >>> class House:
... wall_colour = 'white'
Yet, we have to *build* a house before it exists::
@@ -336,7 +336,7 @@ Glossary
Often seen in method signatures, ``self`` refers to the instance
of the associated class. For example:
- >>> class Paintbrush(object):
+ >>> class Paintbrush:
... color = 'blue'
...
... def paint(self):