[issue17351] Fixed python3 descriptor documentation example + removal of explicit object inheritance in docs

2013-03-10 Thread Roundup Robot
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

[issue17351] Fixed python3 descriptor documentation example + removal of explicit object inheritance in docs

2013-03-10 Thread Roundup Robot
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

[issue17351] Fixed python3 descriptor documentation example + removal of explicit object inheritance in docs

2013-03-09 Thread Ned Batchelder
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

[issue17351] Fixed python3 descriptor documentation example + removal of explicit object inheritance in docs

2013-03-09 Thread Ezio Melotti
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

[issue17351] Fixed python3 descriptor documentation example + removal of explicit object inheritance in docs

2013-03-09 Thread Raymond Hettinger
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

[issue17351] Fixed python3 descriptor documentation example + removal of explicit object inheritance in docs

2013-03-08 Thread Terry J. Reedy
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 --

[issue17351] Fixed python3 descriptor documentation example + removal of explicit object inheritance in docs

2013-03-08 Thread Vinay Sajip
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

[issue17351] Fixed python3 descriptor documentation example + removal of explicit object inheritance in docs

2013-03-04 Thread Phil Elson
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