pydu/docs/compat.rst

13 lines
238 B
ReStructuredText
Raw Normal View History

2017-11-05 04:00:49 +00:00
Compat
------
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