One more comment, and it stops.
transcript
A reply counter works on a test thread. It works on a hundred comments. It works on nine hundred ninety-nine. Then one more comment arrives.
Nine hundred ninety-nine comments work. One thousand comments raise a recursion error. Real threads can reach twenty thousand.
Comment zero waits for comment one. Comment one waits for comment two. Every comment waits for the next. So all of them hold a frame together.
The function is not slow. Every waiting call needs a frame. Python allows about one thousand open frames. The error comes at once, with no partial answer.
Test the largest input the product allows. A few comments will never show this. Twenty thousand comments will.
Keep the same base case. Keep the same step. Let a loop do the walking. A loop opens one frame, not twenty thousand.
A depth that grows with the input needs a loop. Full breakdown in the lecture.