[Python-ideas] Have REPL print less by default
Koos Zevenhoven
k7hoven at gmail.com
Tue Apr 19 16:06:31 EDT 2016
On Tue, Apr 19, 2016 at 7:18 PM, Steven D'Aprano <steve at pearwood.info> wrote:
[...]
> which then gives tracebacks like this:
>
>
> py> sys.setrecursionlimit(200)
> py> a = fact(10000)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "<stdin>", line 3, in fact
> [...repeat previous line 197 times...]
> File "<stdin>", line 2, in fact
> RuntimeError: maximum recursion depth exceeded in comparison
>
Something like this would also make sense (although not be quite as
useful) when there is infinite recursion. But it should recognize a
block of several lines repeating.
-Koos
More information about the Python-ideas
mailing list