Walter Woods <woodswal...@gmail.com> added the comment: Sorry I'm just getting back to this . . . Senthil, doesn't list(None) throw an exception? That was the whole problem with list()ing the default argument.
And I don't think the problem should be fixed in email.message.Message.get_all() . . . that function works exactly as it says it should. Its behavior is consistent. This issue should not change that. And even WITH changing that function, the patch would still need to fix http.client.HTTPResponse.getheader(). Just check python 2.6, and it looks like that function works correctly. If a number is passed, it returns a number as the default. We'd be preserving backwards compatibility, not destroying it, by returning the default parameter unchanged in 3.X when the specified header does not exist. I'll try attaching a patch before too long. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8572> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com