[docs] 18.1.2.1. FeedParser API Error

Sandro Tosi sandro.tosi at gmail.com
Sat Feb 18 19:04:44 CET 2012


Hello Julian,
thanks for your email.

On Fri, Feb 3, 2012 at 05:08, Julian Ceipek
<julian.ceipek at students.olin.edu> wrote:
> The following is inaccurate in 18.1.2.1.:
>
>> Here is the API for the FeedParser:
>> class email.parser.FeedParser([_factory])
>> Create a FeedParser instance. Optional _factory is a no-argument callable
>> that will be called whenever a new message object is needed. It defaults to
>> the email.message.Message class.
>
> It seems to actually be "email.FeedParser.FeedParser("

Could you please explain why you think it's another class? I just did:

$ ./python
Python 2.7.2+ (2.7:f0666e56a552, Jan  7 2012, 16:31:06)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.parser import FeedParser
>>> dir(FeedParser)
['__doc__', '__init__', '__module__', '_call_parse', '_new_message',
'_parse_headers', '_parsegen', '_pop_message', '_set_headersonly',
'close', 'feed']

(a similar output is for 3.2 and 3.3), so the documented class.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list