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 Walter.Woods
Recipients Walter.Woods, barry, hdiogenes, orsenthil, r.david.murray
Date 2010-05-05.14:57:27
SpamBayes Score 1.2743461e-08
Marked as misclassified No
Message-id <1273071449.79.0.844376529025.issue8572@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-05-05 14:57:30Walter.Woodssetrecipients: + Walter.Woods, barry, orsenthil, hdiogenes, r.david.murray
2010-05-05 14:57:29Walter.Woodssetmessageid: <1273071449.79.0.844376529025.issue8572@psf.upfronthosting.co.za>
2010-05-05 14:57:27Walter.Woodslinkissue8572 messages
2010-05-05 14:57:27Walter.Woodscreate