diff options
author | Raymond Hettinger <python@rcn.com> | 2013-03-10 09:50:37 -0700 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-03-10 09:50:37 -0700 |
commit | 1fcbc664fecc7b569a7d4657781127acd614ab51 (patch) | |
tree | 477a576232e4690c405c64e8f085950e10f3a0ca /Doc | |
parent | d3b19e254254db7a56c05bc4b4a5749da956ee49 (diff) | |
download | cpython-1fcbc664fecc7b569a7d4657781127acd614ab51.tar.gz |
Inherit from object() for consistency
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/howto/descriptor.rst | 2 |
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" |