You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Python 3.7, a StopIteration error raised inside a generator is converted into a RuntimeError at the point that it leaves the generator, as detailed in PEP-479. The delphin.util.LookaheadIterator wraps an iterator and suppresses the first StopIteration in order to provide the L1 lookahead. This will need to be fixed somehow. Hopefully it's just a matter of using return instead of raise, but otherwise it would require a custom error class or something.
The text was updated successfully, but these errors were encountered:
Since Python 3.7, a
StopIteration
error raised inside a generator is converted into aRuntimeError
at the point that it leaves the generator, as detailed in PEP-479. Thedelphin.util.LookaheadIterator
wraps an iterator and suppresses the firstStopIteration
in order to provide the L1 lookahead. This will need to be fixed somehow. Hopefully it's just a matter of usingreturn
instead ofraise
, but otherwise it would require a custom error class or something.The text was updated successfully, but these errors were encountered: