[issue14020] Improve HTMLParser doc

2012-02-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue14020] Improve HTMLParser doc

2012-02-17 Thread Roundup Robot
Roundup Robot 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 HTMLParser documentation. http://hg.py

[issue14020] Improve HTMLParser doc

2012-02-17 Thread Éric Araujo
Éric Araujo added the comment: Just indent the example, or move it below! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14020] Improve HTMLParser doc

2012-02-17 Thread Ezio Melotti
Ezio Melotti 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. --

[issue14020] Improve HTMLParser doc

2012-02-17 Thread Éric Araujo
Éric Araujo 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. -- ___ Python

[issue14020] Improve HTMLParser doc

2012-02-16 Thread Ezio Melotti
Ezio Melotti added the comment: Do you remember how to do it? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue14020] Improve HTMLParser doc

2012-02-15 Thread Éric Araujo
Éric Araujo 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

[issue14020] Improve HTMLParser doc

2012-02-15 Thread Ezio Melotti
New submission from Ezio Melotti : 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 methods; - added a couple o