Proposal:
traceback の、トレースバック付きの例外やトレースバックのみを表示するすべてのAPIに、 show_lines という keyword only argument を追加してください。
デフォルトはTrueで、今まで通りにソースコードを表示します。
show_lines=False を指定すると、ソースコードの表示をしません。
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/shorter-and-reversed-format-for-traceback/51139