ソースを参照

More accurate comments

Ryan C. Thompson 9 年 前
コミット
0f87e5c793
1 ファイル変更3 行追加2 行削除
  1. 3 2
      dodo.py

+ 3 - 2
dodo.py

@@ -42,13 +42,14 @@ scalar argument.
         elif isinstance(arg, Iterable):
             try:
                 # Duck-typing test for list-ness (a stricter condition
-                # that just "iterable")
+                # than just "iterable")
                 for i in xrange(len(arg)):
                     result.append(arg[i])
             except TypeError:
-                # Not list-like
+                # Iterable but not list-like
                 result.append(arg)
         else:
+            # Not iterable
             result.append(arg)
     return result