homepage

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 ncoghlan
Recipients benjamin.peterson, eric.araujo, eric.snow, georg.brandl, ncoghlan, r.david.murray, terry.reedy
Date 2012年07月05日.04:11:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1341461471.51.0.301240927453.issue12535@psf.upfronthosting.co.za>
In-reply-to
Content
I've thought of a different approach to this which should be less hazardous to doctests: include the truncation warning in the *traceback* section, rather than in the header. doctests already ignore the details of that section because checking it is too fragile.
cc'ing Georg because I think this a potentially big win for the usability of chained tracebacks, but also think it is dubious from a feature vs fix point of view.
With the change I'm considering, truncated tracebacks would look something like:
Traceback (most recent call last):
 <truncated: another exception occurred>
 File "/home/rdmurray/python/email6/Lib/email/message.py", line 466, in __getattr__
 return getattr(self._headers, key)
AttributeError: '_Header_List' object has no attribute 'header_factory'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/rdmurray/python/email6/Lib/mailbox.py", line 1631, in set_flags
 self.replace_header('Status', status_flags)
 File "/home/rdmurray/python/email6/Lib/email/message.py", line 495, in replace_header
 print('rep', self.header_factory)
 File "/home/rdmurray/python/email6/Lib/email/message.py", line 469, in __getattr__
 self.__class__.__name__, key))
AttributeError: 'mboxMessage' object has no attribute 'header_factory'
History
Date User Action Args
2012年07月05日 04:11:11ncoghlansetrecipients: + ncoghlan, georg.brandl, terry.reedy, benjamin.peterson, eric.araujo, r.david.murray, eric.snow
2012年07月05日 04:11:11ncoghlansetmessageid: <1341461471.51.0.301240927453.issue12535@psf.upfronthosting.co.za>
2012年07月05日 04:11:10ncoghlanlinkissue12535 messages
2012年07月05日 04:11:09ncoghlancreate

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