Message112469
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. |
|
Date |
User |
Action |
Args |
2010-08-02 13:59:02 | r.david.murray | set | recipients:
+ r.david.murray, barry, orsenthil, dstanek, hdiogenes, eric.araujo, l0nwlf, Walter.Woods |
2010-08-02 13:59:02 | r.david.murray | set | messageid: <1280757542.11.0.792240909966.issue8572@psf.upfronthosting.co.za> |
2010-08-02 13:59:00 | r.david.murray | link | issue8572 messages |
2010-08-02 13:58:59 | r.david.murray | create | |
|