Last active
September 6, 2020 04:46
-
-
Save astellon/8374e31635224b7cef85b5adb5e8f852 to your computer and use it in GitHub Desktop.
Revisions
-
astellon revised this gist
Sep 6, 2020 . No changes.There are no files selected for viewing
-
astellon created this gist
Aug 6, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ def cycle(iterable): it = iter(iterable) while True: try: yield next(it) except StopIteration: it = iter(iterable) continue