mirror of https://github.com/flaggo/pydu.git
add doc for itercompat
This commit is contained in:
parent
77bab1f07f
commit
19d39df798
|
@ -22,6 +22,7 @@ Content
|
|||
|
||||
archive
|
||||
dict
|
||||
itercompat
|
||||
misc
|
||||
set
|
||||
string
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
Dict
|
||||
----
|
||||
|
||||
.. 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
|
Loading…
Reference in New Issue