diff options
author | Raymond Hettinger <python@rcn.com> | 2013-03-10 16:49:08 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-03-10 16:49:08 (GMT) |
commit | 7ed6f7ead19c81d697e0364ac849bd042b7f1502 (patch) | |
tree | 7a4c75897bdb6dad97c3fdf6e5666586a26163a9 /Doc | |
parent | 8c5c3e3bb6c40597f73290555f1808569adfcbb8 (diff) | |
download | cpython-7ed6f7ead19c81d697e0364ac849bd042b7f1502.zip cpython-7ed6f7ead19c81d697e0364ac849bd042b7f1502.tar.gz cpython-7ed6f7ead19c81d697e0364ac849bd042b7f1502.tar.bz2 |
Classmethod example needs to inherit from object
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 0db96d6..f793562 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst @@ -409,7 +409,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" |