Classmethod example needs to inherit from object

This commit is contained in:
Raymond Hettinger 2013-03-10 09:49:08 -07:00
parent 8c5c3e3bb6
commit 7ed6f7ead1
1 changed files with 1 additions and 1 deletions

View File

@ -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"