parameters: (l)
return_statement: return hasattr(l, '__iter__') \
             or (type(l) in (types.ListType, types.TupleType))
docstring: Convenience method that works with all 2.x versions of Python
      to determine whether or not something is listlike.
docstring_summary: Convenience method that works with all 2.x versions of Python
      to determine whether or not something is listlike.
docstring_tokens: Convenience method that works with all 2 . x versions of Python to determine whether or not something is listlike .
function: def isList(l):
      """Convenience method that works with all 2.x versions of Python
      to determine whether or not something is listlike."""
      return hasattr(l, '__iter__') \
             or (type(l) in (types.ListType, types.TupleType))
function_tokens: def isList ( l ) : return hasattr ( l , '__iter__' ) or ( type ( l ) in ( types . ListType , types . TupleType ) )