Tweeted By @jeremyphoward
PEP 479 (accepted within a week of proposal) breaks generator composition in Python if you want composed functions to dynamically determine when to stop generation. :(
— Jeremy Howard (@jeremyphoward) August 1, 2019
Here's a little function to help work around the problem.https://t.co/Y2w3So3od2 pic.twitter.com/O2uAsNvrIJ