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
changed the title
gh-102114: Make _try_compile print shorter traceback
gh-102114: Make dis._try_compile print shorter traceback
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters