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