commit | 7ed6f7ead19c81d697e0364ac849bd042b7f1502 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sun Mar 10 09:49:08 2013 -0700 |
committer | Raymond Hettinger <python@rcn.com> | Sun Mar 10 09:49:08 2013 -0700 |
tree | 7a4c75897bdb6dad97c3fdf6e5666586a26163a9 | |
parent | 8c5c3e3bb6c40597f73290555f1808569adfcbb8 [diff] |
Classmethod example needs to inherit from object
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 @@ :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"