summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-03-10 09:50:37 -0700
committerRaymond Hettinger <python@rcn.com>2013-03-10 09:50:37 -0700
commit686aae484175ac05c18b8840e0c26ab602a31c88 (patch)
tree879caddb77fcc69f1df3a03ae0f28678ebd248a3
parent632c8c8ab114290e876c14452a803795cce432a3 (diff)
downloadcpython-git-686aae484175ac05c18b8840e0c26ab602a31c88.tar.gz
Inherit from object() for consistency
-rw-r--r--Doc/howto/descriptor.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
index 923bbe81ad..cc1b78d635 100644
--- a/Doc/howto/descriptor.rst
+++ b/Doc/howto/descriptor.rst
@@ -401,7 +401,7 @@ is to create alternate class constructors. In Python 2.3, the classmethod
:func:`dict.fromkeys` creates a new dictionary from a list of keys. The pure
Python equivalent is::
- class Dict:
+ class Dict(object):
. . .
def fromkeys(klass, iterable, value=None):
"Emulate dict_fromkeys() in Objects/dictobject.c"