Skip to content

tracebackモジュールにソースコードの表示を制御する show_lines オプションを追加する #80

@methane

Description

@methane

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions