Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rajmayank/45acc93959cf63ef7397e3419521682a to your computer and use it in GitHub Desktop.
Save rajmayank/45acc93959cf63ef7397e3419521682a to your computer and use it in GitHub Desktop.
Python-Generators-API-Introduction-III
secretV2 = doSecretStuffVersion2(5)
secretV2Value = next(secretV2)
print(secretV2Value) # 12593025435840...
print(type(secretV2Value)) # <class 'int'>
print(sys.getsizeof(secretV2Value)) # 9312
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment