mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
11f972f817
Python 3.7 changed the behaviour of generators so that a StopIteration exception which bubbles up inside a generator is transformed into a RuntimeException. This means that when calling next() inside a generator, we have to explicitly catch the StopIteration and exit the function instead of relying on it to implicitly stop the generator. Otherwise the program will crash. Sigh. For more information, see PEP 479. https://www.python.org/dev/peps/pep-0479/ https://stackoverflow.com/questions/51700960/runtimeerror-generator-raised-stopiteration-every-time-i-try-to-run-app/51701040#51701040 |
||
---|---|---|
.. | ||
cli | ||
data/csv | ||
db | ||
doc | ||
struct | ||
tests | ||
util | ||
__init__.py | ||
__main__.py | ||
compatibility.py | ||
defaults.py | ||
formulae.py | ||
lookup.py | ||
main.py | ||
roomaji.py | ||
search.py |