R. David Murray <rdmur...@bitdance.com> added the comment: Given what we've learned, I think that Walter's first patch is the best fix. No one should be relying on the current actual behavior of the default argument, and the fix makes it work as documented.
As for backporting to 2.7, I don't think so. 2.7 is in feature freeze, and the API change would be a feature and not a bug fix. (You could argue that, though, based on the RFC...so someone can appeal to Benjamin if desired.) Walter, re the patch, why pass a default to get_all at all? It is going to return None if there are no such headers. Then you could test 'if headers is None' and the logic would be a little more pedantically safe. Also, we need some unit tests for this. ---------- _______________________________________ 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