veekun_pokedex/pokedex
Kip Yin 11f972f817 Catch StopIteration explicitly in group_by_object generator (#264)
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
2019-07-15 13:23:37 -07:00
..
cli Stub out a CLI search interface, which can also work with JSON and strings 2016-02-02 10:13:38 -08:00
data/csv Merge pull request #238 from jrubinator/record-gift-pokemon 2019-07-12 19:40:29 -07:00
db Catch StopIteration explicitly in group_by_object generator (#264) 2019-07-15 13:23:37 -07:00
doc Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
struct Unbreak SaveFilePokemon slightly 2018-06-26 23:53:59 -07:00
tests Merge pull request #238 from jrubinator/record-gift-pokemon 2019-07-12 19:40:29 -07:00
util Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
__init__.py Speed up import pokedex.db slightly. 2011-04-03 03:13:07 -07:00
__main__.py Make the library work with python -m. 2013-08-09 13:00:37 -07:00
compatibility.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
defaults.py Speed up import pokedex.db slightly. 2011-04-03 03:13:07 -07:00
formulae.py Addressed all of pyflakes3's complaints 2016-11-24 21:29:58 +00:00
lookup.py Fix references to "ja" (which is now ja-Hrkt) 2017-06-18 00:15:05 -07:00
main.py Fix error when no arguments are specified (#240) 2018-08-22 23:34:27 -07:00
roomaji.py Compat with Python 3.3+ 2015-10-05 08:12:23 -07:00
search.py Stub out a CLI search interface, which can also work with JSON and strings 2016-02-02 10:13:38 -08:00