Message104585
No, because my code is a backward compatibility hack. Currently if someone is passing a default successfully they must be doing it by passing in a list or tuple consisting of one or more strings. So your code would result in something like:
>>> ', '.join([str(['abc'])])
"['abc']"
However, you are correct that if default is some object other than a list, it is either going to work in the ', ' or it isn't, so there's no need to call list on it. So my code should be simplified to:
if isinstance(default, string):
default = [default]
return ', '.join(self.headers_get_all(name, default)) |
|
Date |
User |
Action |
Args |
2010-04-29 20:43:41 | r.david.murray | set | recipients:
+ r.david.murray, orsenthil, Walter.Woods |
2010-04-29 20:43:41 | r.david.murray | set | messageid: <1272573821.29.0.869459686927.issue8572@psf.upfronthosting.co.za> |
2010-04-29 20:43:39 | r.david.murray | link | issue8572 messages |
2010-04-29 20:43:39 | r.david.murray | create | |
|