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 spiv
Recipients
Date 2004-09-22.20:50:46
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The docs at
http://www.python.org/dev/doc/devel/lib/node534.html say:

"Normally, when things like MIME terminating boundaries
are missing, or when messages contain other formatting
problems, the Parser will raise a MessageParseError. 
However, when lax parsing is enabled, the Parser will
attempt to work around such broken formatting ..."

Which strongly suggests that the 'strict' flag defaults
to True.  However, it later says:

"The strict flag defaults to False since lax parsing
usually provides the most convenient behavior."

I suggest the paragraph be reworded to avoid giving the
impression that strict is True by default.  Perhaps
something like:

"The optional strict flag specifies whether strict or
lax parsing should be performed. When things like MIME
terminating boundaries are missing, or when messages
contain other formatting problems, the Parser will
raise a MessageParseError if the strict flag is True.
Otherwise, it uses lax parsing, and the Parser will
attempt to work around such broken formatting to
produce a usable message structure (this doesn't mean
MessageParseErrors are never raised; some ill-formatted
messages just can't be parsed). The strict flag
defaults to False since lax parsing usually provides
the most convenient behavior."
History
Date User Action Args
2007-08-23 14:26:24adminlinkissue1032960 messages
2007-08-23 14:26:24admincreate