Commit 7ed6f7ea authored by Raymond Hettinger's avatar Raymond Hettinger

Classmethod example needs to inherit from object

parent 8c5c3e3b
...@@ -409,7 +409,7 @@ is to create alternate class constructors. In Python 2.3, the classmethod ...@@ -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 :func:`dict.fromkeys` creates a new dictionary from a list of keys. The pure
Python equivalent is:: Python equivalent is::
class Dict: class Dict(object):
. . . . . .
def fromkeys(klass, iterable, value=None): def fromkeys(klass, iterable, value=None):
"Emulate dict_fromkeys() in Objects/dictobject.c" "Emulate dict_fromkeys() in Objects/dictobject.c"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment