Skip to content

Instantly share code, notes, and snippets.

@andrealmar
Created March 8, 2016 03:30
Show Gist options
  • Save andrealmar/29828409e8aad867574e to your computer and use it in GitHub Desktop.
Save andrealmar/29828409e8aad867574e to your computer and use it in GitHub Desktop.
>>> # Quando a função termina, a exceção StopIteration é levantada automaticamente.
>>> next(a)
Traceback (most recent call last):
...
StopIteration
>>> next(a)
Traceback (most recent call last):
...
StopIteration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment