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 r.david.murray
Recipients Walter.Woods, barry, dstanek, eric.araujo, hdiogenes, l0nwlf, orsenthil, r.david.murray
Date 2010-08-02.13:58:59
SpamBayes Score 0.0015081239
Marked as misclassified No
Message-id <1280757542.11.0.792240909966.issue8572@psf.upfronthosting.co.za>
In-reply-to
Content
Right, the join behavior is correct.  But the definition of a *default* (aka sentinel) value is that it is returned *unchanged*.  It is counter intuitive that if you pass a list of strings as a default, that what you get back is those strings joined by ','.  But that is the released behavior. so we have to live with it.

I think the doc patch is OK except that it should be 'iterable' rather than 'iterator'.  However, it might make the whole method clearer if we say instead:

Return the value of the header *name*, or *default* if there is no header matching *name*.  If there is more than one header with the name *name*, return all of the values joined by ', '.  If 'default' is any iterable other than a single string, its elements are similarly returned joined by commas.
History
Date User Action Args
2010-08-02 13:59:02r.david.murraysetrecipients: + r.david.murray, barry, orsenthil, dstanek, hdiogenes, eric.araujo, l0nwlf, Walter.Woods
2010-08-02 13:59:02r.david.murraysetmessageid: <1280757542.11.0.792240909966.issue8572@psf.upfronthosting.co.za>
2010-08-02 13:59:00r.david.murraylinkissue8572 messages
2010-08-02 13:58:59r.david.murraycreate