Staging
v0.5.1
https://github.com/python/cpython
Revision 49020174305ca3dc90a811b03a05f44873297c61 authored by Miss Islington (bot) on 10 September 2018, 16:00:08 UTC, committed by GitHub on 10 September 2018, 16:00:08 UTC

The recursive frame pruning code always undercounted the number of elided frames
by one. That is, in the "[Previous line repeated N more times]" message, N would
always be one too few. Near the recursive pruning cutoff, one frame could be
silently dropped. That situation is demonstrated in the OP of the bug report.

The fix is to start the identical frame counter at 1.
(cherry picked from commit d545869d084e70d4838310e79b52a25a72a1ca56)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 parent d53f1ca
Raw File
Tip revision: 49020174305ca3dc90a811b03a05f44873297c61 authored by Miss Islington (bot) on 10 September 2018, 16:00:08 UTC
bpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077)
Tip revision: 4902017
CODE_OF_CONDUCT.rst
Code of Conduct
===============

Please note that all interactions on
`Python Software Foundation <https://www.python.org/psf-landing/>`__-supported
infrastructure is `covered
<https://www.python.org/psf/records/board/minutes/2014-01-06/#management-of-the-psfs-web-properties>`__
by the `PSF Code of Conduct <https://www.python.org/psf/codeofconduct/>`__,
which includes all infrastructure used in the development of Python itself
(e.g. mailing lists, issue trackers, GitHub, etc.).

In general this means everyone is expected to be open, considerate, and
respectful of others no matter what their position is within the project.

back to top