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, orsenthil, r.david.murray
Date 2010-04-29.18:57:57
SpamBayes Score 0.0019383238
Marked as misclassified No
Message-id <1272567478.73.0.315297756291.issue8572@psf.upfronthosting.co.za>
In-reply-to
Content
David: Your example tests specifically for a string, but what about just converting default to a string always if it's not a list?  Otherwise the string join is just going to fail anyway (suppose an integer is passed, which is the case with couchdb-python).  Wouldn't


if not isinstance(default, list):
    default = [str(default)]

Be safer?
History
Date User Action Args
2010-04-29 18:57:58Walter.Woodssetrecipients: + Walter.Woods, orsenthil, r.david.murray
2010-04-29 18:57:58Walter.Woodssetmessageid: <1272567478.73.0.315297756291.issue8572@psf.upfronthosting.co.za>
2010-04-29 18:57:57Walter.Woodslinkissue8572 messages
2010-04-29 18:57:57Walter.Woodscreate