pydu/docs/itercompat.rst

13 lines
246 B
ReStructuredText
Raw Normal View History

2017-11-02 14:56:33 +00:00
Itercompat
----------
2017-11-02 14:53:10 +00:00
.. 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