[Python-checkins] cpython (2.7): Classmethod example needs to inherit from object
raymond.hettinger
python-checkins at python.org
Sun Mar 10 17:49:20 CET 2013
http://hg.python.org/cpython/rev/3c39df4b886e
changeset: 82586:3c39df4b886e
branch: 2.7
parent: 82583:513c4aaf70d7
user: Raymond Hettinger <python at rcn.com>
date: Sun Mar 10 09:49:08 2013 -0700
summary:
Classmethod example needs to inherit from object
files:
Doc/howto/descriptor.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst
--- a/Doc/howto/descriptor.rst
+++ b/Doc/howto/descriptor.rst
@@ -409,7 +409,7 @@
: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"
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list