Roundup Robot added the comment:
New changeset 513c4aaf70d7 by Raymond Hettinger in branch '2.7':
Issue #17351: Modernize the pure Python property() example.
http://hg.python.org/cpython/rev/513c4aaf70d7
--
nosy: +python-dev
___
Python tracker
Roundup Robot added the comment:
New changeset bb7e01b5d362 by Raymond Hettinger in branch '3.3':
Issue #17351: Modernize the pure Python property() example.
http://hg.python.org/cpython/rev/bb7e01b5d362
--
___
Python tracker rep...@bugs.python.org
Ned Batchelder added the comment:
Why is it important to remove subclassing object? Isn't it still good form to
mention object as a base class.
--
nosy: +nedbat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17351
Ezio Melotti added the comment:
Why is it important to remove subclassing object?
It's not /important/, but those are just leftovers from 2.x, and there's no
reason to keep them around.
Isn't it still good form to mention object as a base class.
I don't think so (or at least I've never
Raymond Hettinger added the comment:
[Ned]
Isn't it still good form to mention object as a base class.
I don't think so. The classes look much cleaner without it.
+1 from for removing (object) from most examples (except for the descriptor
howto).
[Terry]
The respective howto and examples
Terry J. Reedy added the comment:
The respective howto and examples authors should give their OK for deleting
'(object)' in case they are trying to keep one text compatible across 2 and 3.
I added the other two to the nosy list.
Doc/howto/descriptor.rst -- Raymond H.
Doc/howto/sorting.rst --
Vinay Sajip added the comment:
I'm OK with changing the logging cookbook to remove explicit subclassing from
object in the examples.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17351
New submission from Phil Elson:
The example at http://docs.python.org/3.4/howto/descriptor.html#properties does
not run due to the old style raise AttributeError, message form.
This patch fixes the problem, and also goes through the docs to remove explicit
sub-classing from object. The only