[issue21476] Inconsitent behaviour between BytesParser.parse and Parser.parse
R. David Murray
report at bugs.python.org
Sat May 31 21:08:17 CEST 2014
R. David Murray added the comment:
Right, part of the parser contract is to not throw exceptions. Traditionally, a bug could result in an exception, but not an invalid message.
However, using the new email policies, it is possible to *request* that it raise exceptions instead of registering defects. See policy.raise_on_defect.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21476>
_______________________________________
More information about the Python-bugs-list
mailing list