This commit is contained in:
Christopher J. Wright 2019-09-21 09:10:18 -04:00
parent 7a2fe402cd
commit ae3244e348

View file

@ -11,8 +11,8 @@ def as_iterable(iterable_or_scalar):
Otherwise return `obj` Otherwise return `obj`
Notes Notes
----- -----
Although both string types and dictionaries are iterable in Python, we are treating them as not iterable in this Although string types are iterable in Python, we are treating them as not iterable in this
method. Thus, as_iterable(dict()) returns (dict, ) and as_iterable(string) returns (string, ) method. Thus, as_iterable(string) returns (string, )
Examples Examples
--------- ---------
>>> as_iterable(1) >>> as_iterable(1)