[issue8572] httplib getheader() throws error instead of default
Walter Woods
report at bugs.python.org
Thu Apr 29 20:57:58 CEST 2010
Walter Woods <woodswalben at gmail.com> added the comment:
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?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8572>
_______________________________________
More information about the Python-bugs-list
mailing list