Éric Araujo mer...@netwok.org added the comment:
It’s all in the Documenting Python doc.
.. class:: HTMLParser()
Blah blah.
.. method:: feed(data)
Do X and Y.
The following attributes are supported:
.. attribute:: pos
etc.
--
Ezio Melotti ezio.melo...@gmail.com added the comment:
Yes, but there's a section with the example in the middle now, so that doesn't
work. I was thinking about a way to tell sphinx these are methods of the Foo
class, without having them directly indented under the 'class' directive.
Éric Araujo mer...@netwok.org added the comment:
Just indent the example, or move it below!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14020
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 7052eb923fb8 by Ezio Melotti in branch '2.7':
#14020: improve HTMLParser documentation.
http://hg.python.org/cpython/rev/7052eb923fb8
New changeset 569566cbfd13 by Ezio Melotti in branch '3.2':
#14020: improve
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14020
Ezio Melotti ezio.melo...@gmail.com added the comment:
Do you remember how to do it?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14020
___
New submission from Ezio Melotti ezio.melo...@gmail.com:
Attached patch reworks a bit the HTMLParser doc:
- moved the basic example on the top and showed the output;
- added a more complete parser with other examples;
- fixed some factual errors;
- added additional information for some
Éric Araujo mer...@netwok.org added the comment:
Didn’t review in detail but the plan LGTM.
In a subsequent commit, you could update the markup to use nested class/method
directives.
--
___
Python tracker rep...@bugs.python.org