From: Raymond Hettinger Date: Sun, 10 Mar 2013 16:50:37 +0000 (-0700) Subject: Inherit from object() for consistency X-Git-Tag: v3.3.1rc1~66 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=686aae484175ac05c18b8840e0c26ab602a31c88;p=thirdparty%2FPython%2Fcpython.git Inherit from object() for consistency --- diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 923bbe81ad00..cc1b78d6357a 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst @@ -401,7 +401,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"