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 marco.buttu
Recipients docs@python, marco.buttu, rhettinger
Date 2013-09-21.13:03:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379768611.51.0.733933061759.issue19054@psf.upfronthosting.co.za>
In-reply-to
Content
By looking at the other examples in the howto, I saw there is the same problem in all the definitions in the prompt, and furthermore, we are using a different number of spaces to indent MyClass respect the rest of the classes defined in the prompt. 
There is also a wrong indentation in the StaticMethod definition (no prompt definition):

class StaticMethod(object):
 "Emulate PyStaticMethod_Type() in Objects/funcobject.c"

 def __init__(self, f):
      self.f = f

 def __get__(self, obj, objtype=None):
      return self.f

Applying the py3full.patch, the howto passes all the documentation tests:

$ python -m doctest descriptor.rst | tail -n 1
***Test Failed*** 18 failures.
$ python -m doctest descriptor_modified.rst | tail -n 1
$


My 2 cents
History
Date User Action Args
2013-09-21 13:03:31marco.buttusetrecipients: + marco.buttu, rhettinger, docs@python
2013-09-21 13:03:31marco.buttusetmessageid: <1379768611.51.0.733933061759.issue19054@psf.upfronthosting.co.za>
2013-09-21 13:03:31marco.buttulinkissue19054 messages
2013-09-21 13:03:31marco.buttucreate