Ask coding questions

← Back to all posts
Python 3 - maximum call stack / recursion
masonjargon (8)

Did repl.it recently reduce the "maximum call stack" limit? I have a simple code that uses the turtle module and recursively draws triangles inside of triangles... I think it would be considered a "fractal".

The code used to run to completion (a few weeks ago), but now I'm getting a run time error partway through the code:

ExternalError: RangeError: Maximum call stack size exceeded on line 21

My code is at URL: https://repl.it/@masonjargon/Fractal-Turtle

This is my first question for this community. Please let me know any conventions which I should follow. I did search for news around this item, but did not find any recent updates.

Commentshotnewtop
YaacovIland (2)

@Annvil has created a bug report for this as other users are experiencing the same thing with code that previously worked. You may wish to upvote the bug report by clicking on the up arrow directly to the left of the title:
https://repl.it/bugs/p/stack-overflow-on-recursion-wturtle

a5rocks (519)

Hmmm... Works for me? Did you fix something?

BTW Conventions-wise, I kinda suck at this front, but I personally like to have an empty line every time I finish an indented block (idrk how to call it... if, or for, or with, etc.)

masonjargon (8)

@a5rocks thanks for responding! Mine does NOT work. It goes through several iterations, but its the limit before finshing. I will try to add a screen-capture of the output.

masonjargon (8)

@a5rocks and thank you, in addition, for the style pointers.

a5rocks (519)

@masonjargon Sorry for the late response, but here's a screenshot of it working for me:

You might want to report this on https://repl.it/bugs or https://repl.it/feedback (or tell the admins on https://repl.it/discord)

masonjargon (8)

@a5rocks Well, in a way I'm glad it's a technical error and not a coding error. I really appreciate your testing this for me. I will try a few other things than raise this as an issue in "bugs" or "feedback"

Have a great rest of the day.

Matthew