]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Inherit from object() for consistency
authorRaymond Hettinger <python@rcn.com>
Sun, 10 Mar 2013 16:50:37 +0000 (09:50 -0700)
committerRaymond Hettinger <python@rcn.com>
Sun, 10 Mar 2013 16:50:37 +0000 (09:50 -0700)
Doc/howto/descriptor.rst

index 923bbe81ad0031916be0b594bd074752c72d671f..cc1b78d6357abba3e8e1cb102d05ecb82d7ae8b4 100644 (file)
@@ -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"