Walter Woods <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue8572>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com