@@ -207,7 +207,12 @@ Example of fatal error on buffer overflow using
207207Other Language Changes
208208======================
209209
210- * None yet.
210+ Some smaller changes made to the core Python language are:
211+
212+ * Long sequences of repeated traceback lines are now abbreviated as
213+ ``"[Previous line repeated {count} more times]" `` (see
214+ :ref: `py36-traceback ` for an example).
215+ (Contributed by Emanuel Barry in :issue: `26823 `.)
211216
212217
213218New Modules
@@ -438,11 +443,26 @@ not work in future versions of Tcl.
438443(Contributed by Serhiy Storchaka in :issue: `22115 `).
439444
440445
446+ .. _py36-traceback :
447+
441448traceback
442449---------
443450
444- The :meth: `~traceback.StackSummary.format ` method now abbreviates long sequences
445- of repeated lines as ``"[Previous line repeated {count} more times]" ``.
451+ Both the traceback module and the interpreter's builtin exception display now
452+ abbreviate long sequences of repeated lines in tracebacks as shown in the
453+ following example::
454+
455+ >>> def f(): f()
456+ ...
457+ >>> f()
458+ Traceback (most recent call last):
459+ File "<stdin>", line 1, in <module>
460+ File "<stdin>", line 1, in f
461+ File "<stdin>", line 1, in f
462+ File "<stdin>", line 1, in f
463+ [Previous line repeated 995 more times]
464+ RecursionError: maximum recursion depth exceeded
465+
446466(Contributed by Emanuel Barry in :issue: `26823 `.)
447467
448468
0 commit comments