[issue504152] rfc822 long header continuation broken
Changes by Kenneth Arnold : -- nosy: -kcarnold ___ Python tracker <http://bugs.python.org/issue504152> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator
Kenneth Arnold added the comment: I can confirm that (a) this exact behavior is happening and (b) it quite confused me (most of the time it works!). What would be a "good" TypeError? I'd vote for generators to be explicitly supported even if it required a special case. Thanks! -- nosy: +kcarnold ___ Python tracker <http://bugs.python.org/issue4806> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue504152] rfc822 long header continuation broken
Kenneth Arnold <[EMAIL PROTECTED]> added the comment: This issue still seems to be present in Python 2.5's email module. feedparser.py line 444-445 says: # XXX reconsider the joining of folded lines lhdr = EMPTYSTRING.join(lastvalue)[:-1].rstrip('\r\n') I think that should be something like: lhdr = EMPTYSTRING.join(ln.rstrip('\r\n') for ln in lastvalue)[:-1]) The resulting headers still need a fair amount of massaging, though; why not just use Header instances for the headers? -- nosy: +kcarnold ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue504152> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com