pydu/docs/compat.rst

13 lines
238 B
ReStructuredText

Compat
------
.. class:: pydu.itercompat.is_iterable(x)
An implementation independent way of checking for iterables.
>>> from pydu.itercompat import is_iterable
>>> is_iterable([])
True
>>> is_iterable(1)
False