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.15:31:41
SpamBayes Score 1.9912419e-07
Marked as misclassified No
Message-id <1273073503.99.0.307404611137.issue8572@psf.upfronthosting.co.za>
In-reply-to
Content
Relevant part from trunk/Lib/rfc822.py illustrating that returning default unchanged is the legacy/defined behavior:

        return self.dict.get(name.lower(), default)

See attached patch for py3k.  This preserves backwards compatibility (aside from the comma-joined list) and uses the default argument appropriately (consistently with the default argument for dict.get, for instance).

On another note, should we be patching Python 2.7 as well, since RFC 2616 states that the 3.X behavior of a comma-joined list is appropriate (as cited  by Senthil)?
History
Date User Action Args
2010-05-05 15:31:44Walter.Woodssetrecipients: + Walter.Woods, barry, orsenthil, hdiogenes, r.david.murray
2010-05-05 15:31:43Walter.Woodssetmessageid: <1273073503.99.0.307404611137.issue8572@psf.upfronthosting.co.za>
2010-05-05 15:31:42Walter.Woodslinkissue8572 messages
2010-05-05 15:31:41Walter.Woodscreate