Skip to content

Instantly share code, notes, and snippets.

@berezovskyi
Created December 27, 2020 21:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berezovskyi/c440125e10fc013a36f6f5feb8bc3117 to your computer and use it in GitHub Desktop.
Save berezovskyi/c440125e10fc013a36f6f5feb8bc3117 to your computer and use it in GitHub Desktop.
def itertar(tar):
while True:
n = tar.next()
if n is None:
break
else:
yield n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment