this post was submitted on 06 Aug 2024
547 points (97.7% liked)
linuxmemes
20880 readers
9 users here now
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
GNU's not Unix image manipulation program toolkit.
RecursionError: Maximum recursion depth exceeded image manipulation toolkit
I haven't really done much recursion in Python, but can't we do a tail-recursive version so that it (almost) never reaches recursion depth issues?
We cannot, Python explicitly doesn't do TCO.
http://neopythonic.blogspot.com/2009/04/tail-recursion-elimination.html?m=1
Is there a separate RecursionError in modern versions of Python? Been a couple years but I remember it just being a RuntimeError
Lol Edit: TIL that's what GTK stands for
GNU's not Unix image manipulation program toolkit public license