[issue3243] Support iterable bodies in httplib
Raymond Hettinger
report at bugs.python.org
Sun Nov 28 20:10:14 CET 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Instead of
hasattr(str,'next')
consider using
isinstance(str, collections.Iterable)
Also consider changing the variable name from the now overly type specific, "str" to something like "source" to indicate the significance of the data, not its type.
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3243>
_______________________________________
More information about the Python-bugs-list
mailing list