Uh oh!
There was an error while loading. Please reload this page.
Fix RecursionError when iterating streams - #1554
Conversation
Byron
commented
Feb 12, 2023
Thanks a lot, I have a feeling that this issue was present for a long time already! Do you think Python 2 compatibility is still required? Support for it was dropped a while ago and if you agree it can be dropped entirely. |
eric-wieser
commented
Feb 12, 2023
I have no objection to dropping the |
| next = __next__ | ||
There was a problem hiding this comment.
Feel free to commit through the github UI if you want to drop this Python2 compatibility layer entirely:
| next = __next__ |
Note that there may be some downstream code that relies on using next because __next__ was broken though!
There was a problem hiding this comment.
Ah, right. Oh well, let's be conservative then.
Byron
commented
Feb 12, 2023
Great! Let's do that and the PR can be merged. Thank you |
next(self)was previously just a recursive call that does nothing.This now implements
__next__using the actual implementation, and lets the python2-compatibilitynext()just wrap it.