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, orsenthil, r.david.murray
Date 2010-04-29.20:43:39
SpamBayes Score 0.0005685898
Marked as misclassified No
Message-id <1272573821.29.0.869459686927.issue8572@psf.upfronthosting.co.za>
In-reply-to
Content
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))
History
Date User Action Args
2010-04-29 20:43:41r.david.murraysetrecipients: + r.david.murray, orsenthil, Walter.Woods
2010-04-29 20:43:41r.david.murraysetmessageid: <1272573821.29.0.869459686927.issue8572@psf.upfronthosting.co.za>
2010-04-29 20:43:39r.david.murraylinkissue8572 messages
2010-04-29 20:43:39r.david.murraycreate