◐ Shell
clean mode source ↗

gh-102114: Make dis print more concise tracebacks for syntax errors in str inputs by chgnrdv · Pull Request #102115 · python/cpython

This commit reworks code of '_try_compile' function so that it print shorter traceback if its 'source' argument contains indentation/syntax error

@chgnrdv chgnrdv changed the title gh-102114: Make _try_compile print shorter traceback gh-102114: Make dis._try_compile print shorter traceback

Feb 21, 2023

@chgnrdv

iritkatriel

@chgnrdv

iritkatriel

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>

iritkatriel

iritkatriel

@chgnrdv

iritkatriel

iritkatriel

@chgnrdv

iritkatriel

@iritkatriel iritkatriel changed the title gh-102114: Make dis._try_compile print shorter traceback gh-102114: Make dis print more concise tracebacks for syntax errors in str inputs

Apr 15, 2023

carljm added a commit to carljm/cpython that referenced this pull request

Apr 17, 2023

carljm added a commit to carljm/cpython that referenced this pull request

Apr 17, 2023