mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
fix note
This commit is contained in:
parent
7a2fe402cd
commit
ae3244e348
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ def as_iterable(iterable_or_scalar):
|
|||
Otherwise return `obj`
|
||||
Notes
|
||||
-----
|
||||
Although both string types and dictionaries 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, )
|
||||
Although string types are iterable in Python, we are treating them as not iterable in this
|
||||
method. Thus, as_iterable(string) returns (string, )
|
||||
Examples
|
||||
---------
|
||||
>>> as_iterable(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue