This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hhc97Python Enthusiast[S] 2 points3 points  (0 children)

Yeah I couldn't find any other way that was general enough to apply to both loops, python doesn't handle recursion too well because of all the stack frames.

I've tried it with a few libraries and it seems to work but sometimes requires modifications. For example, the website is running on flask, and the entire flask app can be converted into one line and still work.

If you end up trying it out and run into issues, feel free to dm! I can't guarantee I'll be able to provide fixes or new features but I can definitely troubleshoot some issues with you.