This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pelson
Recipients docs@python, pelson, rhettinger
Date 2013-03-04.14:36:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362407799.21.0.301955058492.issue17351@psf.upfronthosting.co.za>
In-reply-to
Content
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 remaining instances of this now are:

$> grep -r -E "class .*\(object\)\:" Doc/*               
Doc/howto/pyporting.rst:   class UnicodeMixin(object):
Doc/reference/compound_stmts.rst:   class Foo(object):
Doc/tools/sphinxext/pyspecific.py:class PyDecoratorMixin(object):
Doc/whatsnew/2.6.rst:    class C(object):
Doc/whatsnew/2.2.rst:   class C(object):
Doc/whatsnew/2.2.rst:   class C(object):
Doc/whatsnew/2.2.rst:   class C(object):
Doc/whatsnew/2.2.rst:   class C(object):
Doc/whatsnew/2.2.rst:   >>> class C(object):


Which are all (minus tools/sphinxext/pyspecific) referring to python2 in some context.

I'm not bound to fixing the explicit object subclassing, so if it is better off not being here, that's fine.

Cheers,
History
Date User Action Args
2013-03-04 14:36:39pelsonsetrecipients: + pelson, rhettinger, docs@python
2013-03-04 14:36:39pelsonsetmessageid: <1362407799.21.0.301955058492.issue17351@psf.upfronthosting.co.za>
2013-03-04 14:36:39pelsonlinkissue17351 messages
2013-03-04 14:36:38pelsoncreate