ColdWater@lemmy.ca to linuxmemes@lemmy.worldEnglish · edit-24 months agoWine acronymlemmy.caexternal-linkmessage-square92fedilinkarrow-up1561
arrow-up1547external-linkWine acronymlemmy.caColdWater@lemmy.ca to linuxmemes@lemmy.worldEnglish · edit-24 months agomessage-square92fedilink
minus-squarelightnegative@lemmy.worldlinkfedilinkarrow-up16·4 months agoRecursionError: Maximum recursion depth exceeded image manipulation toolkit
minus-squareAVincentInSpace@pawb.sociallinkfedilinkEnglisharrow-up2·4 months agoIs there a separate RecursionError in modern versions of Python? Been a couple years but I remember it just being a RuntimeError
minus-squareѕєχυαℓ ρσℓутσρє@lemmy.sdf.orglinkfedilinkarrow-up2·4 months agoI 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?
minus-squarelightnegative@lemmy.worldlinkfedilinkarrow-up5·4 months agoWe cannot, Python explicitly doesn’t do TCO. http://neopythonic.blogspot.com/2009/04/tail-recursion-elimination.html?m=1
RecursionError: Maximum recursion depth exceeded image manipulation toolkit
Is there a separate RecursionError in modern versions of Python? Been a couple years but I remember it just being a RuntimeError
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