changeset: 74067:978f45013c34 branch: 2.7 parent: 74064:88aacd3541ae user: Ezio Melotti date: Mon Dec 19 07:15:26 2011 +0200 files: Doc/library/htmlparser.rst description: #3932: suggest passing unicode to HTMLParser.feed(). diff -r 88aacd3541ae -r 978f45013c34 Doc/library/htmlparser.rst --- a/Doc/library/htmlparser.rst Mon Dec 19 07:04:48 2011 +0200 +++ b/Doc/library/htmlparser.rst Mon Dec 19 07:15:26 2011 +0200 @@ -64,7 +64,8 @@ Feed some text to the parser. It is processed insofar as it consists of complete elements; incomplete data is buffered until more data is fed or - :meth:`close` is called. + :meth:`close` is called. *data* can be either :class:`unicode` or + :class:`str`, but passing :class:`unicode` is advised. .. method:: HTMLParser.close()

AltStyle によって変換されたページ (->オリジナル) /