Classmethod example needs to inherit from object
This commit is contained in:
parent
8c5c3e3bb6
commit
7ed6f7ead1
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue